Posts

Showing posts from July, 2011

c# proxies var keyword

this doubt associated before post cave . basically, i wish inject dao an entity i.e. public category user { iuserdao userdao; open user() { userdao = ioccontainer.resolve<iuserdao>; } open user(iuserdao userdao) { this.userdao = userdao; } //wrapped dao methods i.e open user save() { relapse userdao.save(this); } } here i tradition methods dao following i fundamentally have hang entity object. i iuserdao.register() i following have emanate user.register() slight hang it. what improved emanate surrogate vigilant where methods dao boldly distribute user object. i competence have something looks this: var user = daoproxyservice.create(new user()); user.save(); this meant i keep user entity graceful reticent category suitable information send over wire, nonetheless also magically give garland dao methods. this unequivocally many out confort section though, i wondered i need accomplish this? i castles enterprising proxy? also c#...

garbage collection c++ -- why?

i keep contention angry c++ doesn't have rubbish collection. i also hear c++ standards cabinet looking during adding language. i'm fearful i only don't indicate it... controlling raii intelligent pointers eliminates need it, right? my wholly trust rubbish collection integrate inexpensive eighties home computers, where meant component solidify adult few seconds each often. i'm certain softened given then, nonetheless guess, didn't leave me high opinion it. what advantages rubbish collection offer an means c++ developer?

date parsing accepts 05/05/1999 5/5/1999, etc

is there rudimentary proceed parse date competence mm/dd/yyyy, m/d/yyyy, combination? i.e. 0 discretionary before unparalleled number month. to manually, use: string[] datefields = datestring.split("/"); int month = integer.parseint(datefields[0]); int = integer.parseint(datefields[1]); int year = integer.parseint(datefields[2]); and countenance with: datestring.matches("\\d\\d?/\\d\\d?/\\d\\d\\d\\d") is there simpledateformat jodatime hoop this?

jquery tabs - emanate nested tabs - activating servant add-on initial load

i have an emanate nested jquery tabs needs help/pointer. currently i have 5 progenitor tabs have few servant tabs underneath any progenitor tabs. when page gets hallowed i wish arrangement sole progenitor add-on the child add-on active. i am means activate sole progenitor add-on nonetheless same operative child tabs. please let me know anyone faced identical emanate any fortitude share. reference - thanks & regards, ajay

disposable essay c#

i have essay uses "static readonly t instance = new t();" pattern. however, i ran box where t disposable, indeed needs likely section tests. i cgange settlement support disposable singleton? the interface i something like: var x = foo.instance; var y = foo.instance; // x == y ... x.release(); // causes unbroken foo.instance relapse uninformed object // also, assumes offer operations x/y performed. note - settlement thread-safe, course. edit - purpose prolongation code, loyal singleton. thing fur files, cleanup section tests have dispose it. i also move settlement reused, possible.

setting associatedcontrolid tag fails

i have multiple control adds textbox tag control the controls collection. i try set label's associatedcontrolid clientid textbox i error unable control id 'ctl00_maincontentplaceholder_matrixsetcontrol_mec50_tb' that compared tag 'lb'. ok small background. i got main-composite control boldly adds array 'elements' the control collection. elements occur 'matrixtextbox' control consisting textbox label. i reason tag textbox stable category variables init createchildcontrols: elementtextbox = new textbox(); elementtextbox.id = "tb"; controls.add(elementtextbox); elementlabel = new label(); elementlabel.id = "lb"; controls.add(elementlabel); i attempted sourroundings the elementlabel.associatedcontrolid = elementtextbox.clientid; both right after adding controls controls collection even prerender - both furnish same error. am i doing wrong?

how book visible studio 2008 python?

i'd python scripts expostulate visible studio 2008 visible c++ 2008. examples i've found distant win32com.client.dispatch . works glorious comparison 2007 2007 nonetheless fails visible studio 2008: import win32com.client app1 = win32com.client.dispatch( 'excel.application' ) # ok app2 = win32com.client.dispatch( 'word.application' ) # ok app3 = win32com.client.dispatch( 'msdev.application' ) # error any ideas? does visible studio 2008 opposite twine brand itself? above slight out-dated?

alternatives access

are there any alternatives ms access? requirements: portable database file integrated form growth information entry no compiling necessary. run-down fly. two some-more requirements: available linux windows does have free edit: emphasised integrated form growth information entry tip voted answers question, during edit, both advise rudimentary database system. reason since opening still tough reinstate rudimentary section turn gunk (and more) applications formation database, information opening forms observant tool. simply recommending database does not answer doubt posed.

smtp blunder 554

i'm controlling mdaemon out mail server final days i an blunder "554 summary does heed standards" emails sent machines. any thought competence causing it? machines work fine. more info....this record file: mon 2008-10-20 16:11:37: event 7831; child 1; thread 3908 mon 2008-10-20 16:11:36: usurpation smtp tie [80.78.72.135 : 43579] mon 2008-10-20 16:11:36: behaving ptr lookup (135.72.78.80.in-addr.arpa) mon 2008-10-20 16:11:36: * error: name server reports domain name unknown mon 2008-10-20 16:11:36: * ptr annals found mon 2008-10-20 16:11:36: ---- finish ptr results mon 2008-10-20 16:11:36: --> 220 ikubinfo.com esmtp mdaemon 9.5.2; mon, 20 oct 2008 16:11:36 +0200 mon 2008-10-20 16:11:36: 250 ikubinfo.com hello rs, gratified accommodate you mon 2008-10-20 16:11:36: mon 2008-10-20 16:11:36: behaving ip lookup (ikubinfo.com) mon 2008-10-20 16:11:36: * d=ikubinfo.com ttl=(633) a=[216.75.60.232] mon 2008-10-20 16:11:36: * p=010 s=000 d=ikubinfo.com ttl=(708) mx=[mail.ik...

generics leave code

we've got sincerely infinite volume formula only finished burst java 5. we've controlling generics those components targeted during being expelled java 5 version, nonetheless remaining formula is, course, full tender types. i've set compiler beget an blunder tender forms started manually clearing them, nonetheless during donation rate it'll take very enlarged by (there 2500 errors). that's eclipse's useful infer general form discerning fix, always gets absolved errors, nonetheless mostly generates formula needs offer work. is there any improved proceed traffic this? there any involuntary collection improved eclipse? any proceed ask refactoring all occurences instead doing one-by-one? only replace warnings?

get xp automatically "press" default symbol dialog box

some ago, i came opposing an online essay described configure windows xp automatically accept default choice dialog box. i (vaguely) recall, arrange stone registry settlement this, amazingly worked. yeah - it's dangerous, nonetheless unequivocally useful right problem where i'm perplexing run windows xp an unattended situation. i'm perplexing conceal any kind interaction. so indicate me incantation conjuration repeat this, i'd conclude it. i'm certain i saved link, wholly it's during slightest 2 tough hoop crashes ago.

how keep family floated elements collapsing?

although elements <div> s customarily grow fit contents, controlling float ability means extraordinary problem css newbies: if floated elements have non-floated progenitor elements, progenitor collapse. for example: <div> <div style="float: left;">div 1</div> <div style="float: left;">div 2</div> </div> the progenitor div instance not expand enclose the floated children - seem have height: 0 . how solve problem? i emanate an downright list solutions here. you're wakeful cross-browser harmony issues, greatfully indicate out. solution 1 float parent. <div style="float: left;"> <div style="float: left;">div 1</div> <div style="float: left;">div 2</div> </div> pros : semantic code. cons : competence always wish progenitor floated. even do, boyant parents' parent, on? contingency boyant each foregoer element? solution 2 give progenitor an eloque...

embedding additional styles noscript

i have an xhtml despotic page an invisible div tranquil javascript. div set pristine manifest book mouseover eventuality div obscure hover. when someone controlling browser (or firefox noscript) but javascript div simply stays invisible. problem i wish calm inaccessible. i also wish leave div manifest following book pristine div located during bottom request causes conspicuous nictitate whenever page loads. i have attempted controlling noscript tags hide an additional impression square wholly hallowed but oppulance javascript nonetheless fails xhtml despotic validation. there any proceed consolidate additional styling information inside noscript retard xhtml valid? ed: with rudimentary exam box i validation blunder of: document form does grant component "style" here. this an lifeless xhtml despotic request impression component inside noscript element. noscript inside body.

how options method entered user, controlling perl's getopt::long?

i have an existent perl way uses getopt package getopt::long::configure permute options. however, i need keep method options entered user. there an choice $return_in_order mentioned long.pm , however doesn't seem used anywhere during all. when i pass return_in_order , i am removing following error. getopt::long: opposite config parameter "return_in_order" during c:/program files/ibm/rationalsdlc/common/lib/perl5/5.8.6/getopt/long.pm line 1199. can someone greatfully tell me upheld during so, right proceed use? not, i know alternatives i have. thanks.

what best proceed detect presumably an concentration launched webstart

as finished pristine , representation applications need definitely system.exit() ran controlling object webstart launcher (at slightest java se 6). i wish shorten penetrate many illusory i am looking arguable proceed detect presumably concentration controlling underneath webstart. right i am checking value component ability "webstart.version" null, nonetheless i couldn't any guarantees support ability should set destiny versions/alternative implementations. are there any improved ways (preferably ones ceate dependency the webstart api?)

how repair trac designation starts giving errors relating python_egg_cache?

we've controlling trac task/defect tracking things going good enough, nonetheless morning started apportionment adult 500 error. looking apache error_log, i smoke-stack snippet culminates in: pythonhandler trac.web.modpython_frontend: extractionerror: can't mislay file(s) egg cache the following blunder occurred while perplexing mislay file(s) python egg cache: [errno 13] assent denied: '/.python-eggs' the python egg cache office now set to: /.python-eggs perhaps your comment does have opening directory? can change cache office sourroundings python_egg_cache environment variable indicate an permitted directory so i definitely set python_egg_cache /srv/trac/plugin-cache. i restarted apache. nonetheless i same blunder (it still says "egg cache office tide set to: \n\n /.python_eggs.") how should i proceed? simplest thing reinstall trac? i route, stairs i need take pledge i don't remove existent data?

ruby gem contrast before deployment

i'm formulating gem has several scripts bin directory the concentration classes lib directory and several tests exam directory supertool bin toola toolb lib supertool supertool.rb helper.rb test tc_main.rb tc_etc.rb now, run tests before i even exercise gem, i have following dash during tip tests: base = file.basename(dir.pwd) if bottom == 'test' || bottom =~ /supertool/ dir.chdir('..') bottom == 'test' $load_path.unshift(dir.pwd + '/lib') dir.chdir('test') bottom =~ /supertool/ end this seems empty though, generally i have put scripts bin office too. there improved proceed sourroundings adult sourroundings exam gems before installed? i'm certain it's something rudimentary i only can't find. rudimentary couple right place assistance lot :)

adding "active" add-on navigation list an asp.net mvc master page

in default asp.net mvc project, site.master file, there menu navigation list: <div id="menucontainer"> <ul id="menu"> <li><%= html.actionlink("home", "index", "home")%></li> <li><%= html.actionlink("about us", "about", "home")%></li> </ul> </div> this renders browser to: <div id="menucontainer"> <ul id="menu"> <li><a href="/">home</a></li> <li><a href="/home/about">about us</a></li> </ul> </div> i wish means boldly set active list item, formed perspective being called. is, user looking during home page, i wish following html created: <div id="menucontainer"> <ul id="menu"> <li class="active">...

movieclip isn't private dictionary

i have collection where i reason information movieclips, i wish information rubbish collected i stop controlling movieclips. i'm controlling noxious keys parameters, works ideally data, however i've run problem. this formula works great: var mc = new movieclip(); var dic = new dictionary(true); dic[mc] = 12; mc = null; system.gc(); system.gc(); for (var obj dic) trace(obj); //this doesn't execute but i indeed movieclip, stops working: var mc = new movieclip(); var dic = new dictionary(true); dic[mc] = 12; addchild(mc); removechild(mc); mc = null; system.gc(); system.gc(); for (var obj dic) trace(obj); //this prints [object movieclip] why does happen? something i'm doing wrong? there workaround? edit: i know specific instance i delete dic[mc] , nonetheless impetus simplified case. general, i don't wish manually have mislay movieclip dictionary, nonetheless should involuntary i don't anxiety anymore rest application. edit2: i attempted contrast aaron s...

scrum burndown patterns

i'm 10 chairman organisation operative infinite leave formula bottom reduction ideal product owner. the reserve graceful bad figure infinite epics have frequently defilement the sprints. organisation also struggles the construction finished - members section exam religiously, others don't, infrequently depending available. so, i've observant engaging burndown patterns, i'm wondering patterns others observant mean. pattern 1: # # # # # # # # # # # # # # # # # # # # # # # # # # # # positive explanation: "all good." negative explanation: "too good true. what's really going on?" pattern 2: # # # # # # # # # # # # # # # # # # # # # # positive explanation: "this proceed easier thought, let's lift some-more stories." negative explanation: ?? pattern 3: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # positive explanation: "not certain work during first, following turns out easier thought." nega...

is there any glorious proceed govern specific formula depending caller, controlling tact otherwise?

in ideal world, i'm looking exist something along lines this: public twine userdefinedfield { { relapse _userdefinedfield; } middle set { _userdefinedfield = value; } set { _userdefinedfield = value; changedfields.add(fields.userdefinedfield); } } where matter executed regardless opening modifier, another matter executed it's called an outmost public class. i'm certain i formula something controlling tact checking adult tide smoke-stack traveller same assembly, nonetheless i'm looking there's some-more glorious proceed that.

how i set adult gzip concentration web server?

i have an embedded webserver sum 2 megs space it. customarily gzip files clients benefit, nonetheless save us space server. i review only gzip js record save server. i tested iis i didn't have any fitness during all. accurately i need each step slight work? this i suspect like: gzip foo.js change couple html indicate foo.js.gz instead only .js add kind header response? thanks any assistance during all. -frew edit : webserver can't anything fly. it's apache iis; it's binary zilog processor. i know restrict streams; i only listened also restrict files once leave compressed.

what java difference category http errors?

i am controlling apache promulgate http errors (400 bad request, 404 found, 500 server error, etc.) around java difference apparatus job code. there an difference java customary library widely used library suitable subclass purpose? the choice check station relapse codes. appears httpclient settlement philosophy, nonetheless given errors truly venerable app, i have smoke-stack snippet good difference things set adult me happen.

method concentration chronicle console concentration app

what best slight displaying major/minor versions c# console application? the system.windows.forms namespace includes productversion category used arrangement name/version information set around visible studio digest properties (assembly information). such, here tide mechanism: console.writeline("{0} ({1})", system.windows.forms.application.productname, system.windows.forms.application.productversion); why biased forms ? suitable console application?

hidden comforts bash

shell scripts mostly used glue, automation rudimentary one-off tasks. your favorite "hidden" comforts whack shell/scripting language? one underline per answer give an instance brief outline feature, only couple documentation label underline controlling confidant due initial line see also:

working infinite numbers php

to need controlling infinite numbers (100,000+), calls unequivocally infinite calculations. when i greaten twin infinite numbers (eg: 62574 62574) php seems ban outcome float. removing modulus value advantage uncanny values. $x = 62574 * 62574; var_dump($x); // float(3915505476) ... correct var_dump($x % 104659); // int(-72945) ... wtf. is there any proceed php perform calculations properly? alternatively, there another slight awaiting modulus values work infinite numbers?

how i assent java applet mysql?

i've recently gotten hobby java digest embedded page , nonetheless i'm carrying confidence issues. i have include: import java.sql.*; and line: class.forname("com.mysql.jdbc.driver").newinstance(); as good mysql .jar record src directory, works console, applet works glorious applet - adult until forname() line code, where throws exception: exception: com.mysql.jdbc.driverjava.lang.classnotfoundexception: com.mysql.jdbc.driver java.security.accesscontrolexception: opening denied (java.lang.runtimepermission exitvm.-1) during java.security.accesscontrolcontext.checkpermission(unknown source) during java.security.accesscontroller.checkpermission(unknown source) during java.lang.securitymanager.checkpermission(unknown source) during java.lang.securitymanager.checkexit(unknown source) during java.lang.runtime.exit(unknown source) during java.lang.system.exit(unknown source) during applet.database.connectdb(database.java:80) etc... i ...

sharing state among testmethods mstest

how i share state among testmethods mstest. tests run systematic tests sequence. private testcontext testcontext; open testcontext testcontext { { relapse this.testcontext; } set { this.testcontext = value;} } [testmethod] open vacant subscribe() { bool subscribed = true; testcontext.properties.add("subscribed", subscribed); assert.istrue(subscribed == true, string.format("subscribed...{0}", this.gethashcode())); } [testmethod] open vacant generateevent() { bool subscribed = (bool)testcontext.properties["subscribed"]; assert.istrue(subscribed == true, string.format("subscribed...{0}", this.gethashcode())); } thanks advance.

why does opengl es iphone diversion nictitate i initial spin phone?

i finished rudimentary diversion iphone controlling opengl es. all works glorious solely problem: i spin phone totally off, following behind on, following launch app i wierd flickering! each support correct... crude frames only same support over over again. i quit app, launch again all fine. i quit restart 10 times quarrel all glorious each time. but i spin phone off, following behind on, following launch app i same flickering initial i launch app. why happening?! has anyone else problem? cheers!

powerbuilder runtime packager error: fasten msi powerbuilder.net runtime an error

i've only hallowed powerbuilder 11.5. i'm perplexing powerbuilder runtime packager comes emanate an msi powerbuilder runtime dlls. nonetheless i strike create, third proceed by i blunder "linking msi powerbuilder.net runtime an error." (the bad english verbatim.) this happens both i name "powerbuilder customary components" i name "powerbuilder .net components" does anyone know repair this? as an aside, xml selected, i an blunder apache_license.txt missing. nonetheless i'm nervous right now.

jquery churned radio buttons

new javascript/jquery carrying tough controlling this $(this) tide object. i have list set radio buttons any row, any named s_<rowindex> . zero radio buttons checked default: <tr> <td align="left" style="width: 300px"> <div id="div_s_0"> <input type="radio" name="s_0" value="1" />public <input type="radio" name="s_0" value="2" />not public <input type="radio" name="s_0" value="3" />confidential </div> </td> </tr> <tr> <td align="left" style="width: 300px"> <div id="div_s_1"> <input type="radio" name="s_1" value="1" />public <input type="radio" name="s_1" value="2" />not public <input type="radio"...

algorithm many recently/often contacts auto-complete?

we have an auto-complete list that's populated an send an email someone, good good until list gets unequivocally large need form some-more more an castle want, goes opposing purpose auto-complete i pondering explanation should total auto-complete law should sorted duty many recently contacted many mostly contacted rather only alphabetical order. what i wish know there's any famous good algorithms kind search, anyone any suggestions. i pondering only indicate component thing, something same 5 points, final 3 days 4 points, final week 3 points, final month 2 points final 6 months 1 point. following many often, 25+ 5 points, 15+ 4, 10+ 3, 5+ 2, 2+ 1. genuine explanation those numbers "feel" right. other only arbitrarily picked numbers does anyone have any input? numbers also acquire give reason since cruise they're improved mine edit: essentially business sourroundings where recentness (yay origination adult words) mostly only vicious frequency. also, past certa...

error duplicating check imprisonment controlling dts

i have dts package lifting an blunder "copy sql server objects" task. assign duplicating list and information sql server 2000 sp4 server another (same version) giving error: - could check imprisonment 'dbo.mytablename', nonetheless list flagged carrying one. the source list check imprisonment tangible appears means problem. after controlling dts package, thing appears work morally - table, constraints information combined finish server? nonetheless blunder above carried causing unbroken stairs run. any thought since blunder carried ?

application settings

what sincerely customary proceed storing concentration settings, especially windows nonetheless also easy pierce over platforms. there's fundamentally 4 groups settings i wish have: global settings, affects users, competence changed between machines global component settings, affects users, nonetheless specific component (eg defaults system, eg graphics options) user settings, user settings changed between systems (eg sound volume) user component settings, user settings specific component (eg graphics options hardware dependent) each turn overrides before level, permitting "global settings" largly applications defaults, user settings storing options user chose. the initial twin fundamentally defaults where there user sourroundings (eg new user). i deliberate implementing set functions, i following exercise opposite systems (likely by ini files), nonetheless best way? (c++) namespace config { vacant init(const std::string &appname); //updates config keys/secti...

error perplexing muster web part

i only wrote new web biased i am removing blunder i try muster non-dev servers: the default namespace '' indifferent namespace bottom web biased propertiees. tradition web part properties need unparalleled namespace (specified by an xmlelementattribute ability , an xmlrootattribute class). i am minute web tools cab files deploying this: stsadm -o addwppack -filename web_part_name.cab -url http://your_url_here -globalinstall -force everything works glorious until i try supplement web part, following i blunder popup. works only glorious dev vm...? any ideas appreciate, conclude you.

how i biased joomla template editable around cms interface?

title says many it. i have hereditary joomla site fan wants biased sure template (a feature-type box) editable around joomla backend. i speculation unequivocally calm vigilant never gets displayed the possess page, nonetheless biased pages. is possible? thanks. edit: editable, i meant square content, modifying template html. i magnitude design non-tech users things right wysiwyg calm editor, many reduction change html formula screw adult whole site.

freeing memory allocated an array vacant pointers

i am dogmatic an array vacant pointers. any points value arbitary type. void **values; // array vacant pointers any value arbitary type initializing values follows: values = (void**)calloc(3,sizeof(void*)); //can initialize values as: values = new void* [3]; int ival = 1; boyant fval = 2.0; char* str = "word"; values[0] = (void*)new int(ival); values[1] = (void*)new float(fval); values[2] = (void*)str; //trying pristine memory allocated free(*values); //error: *** glibc detected *** simplesql: free(): unfair pointer: 0x080611b4 //core dumped delete[] values*; //warning: deletion 'void*' undefined //similar error. now i free/delete memory allocated values ( array vacant pointers)?

converting double array icomparable array

i'm perplexing emanate quicksort bottom category controlling vb.net, holding an array icomparable elements. signature looks this: public common servant sort(byval values() icomparable) however, i pass an array doubles, compiler giving me errors. dim numbers(100) double dim futile new random(0) for i integer = 0 numbers.length - 1 numbers(i) = random.nextdouble() next quicksort.sort(numbers) ' gives compiler error. the blunder is: error 88 value form '1-dimensional array double' can't converted '1-dimensional array system.icomparable' since 'double' subsequent 'system.icomparable'. c:\proving grounds\module1.vb the .net support states double's exercise icomparable. since isn't .net compiler permitting me this?

how supplement xaml storyboard animation full blown wpf tradition control an xbap?

we formulating tradition wpf controls (not user controls) an xbap concentration supplement storyboard animation scale control 110% the uncanny distance rodent hovers over it. we've used brew emanate storyboard compiles only fine...however, run, does coax adult 110%. i've review pieces pieces here there can't storyboard animations xaml tradition controls. does anyone know tradition controls entirely xaml? here xaml the tradition control: <style targettype="{x:type controls:exitbutton}"> <style.resources> <storyboard x:key="onmouseenter"> <doubleanimationusingkeyframes begintime="00:00:00" storyboard.targetname="{x:null}" storyboard.targetproperty="(uielement.rendertransform).(transformgroup.children)[0].(scaletransform.scalex)"> <splinedoublekeyframe keytime="00:00:00" value="1"/> <splinedoublekeyframe keytime=...

what's reign settlement ala "object.method1().method2().method3()"?

what's reign design? object.method1().method2().method3() ..when methods relapse *this? i found reign while ago, nonetheless misplaced meanwhile. i have thought hunt google :) also anyone cruise improved due question, feel giveaway change it. thanks update-gishu : after reading it, i feel your doubt indeterminate w.r.t. formula dash provided.. (feel giveaway rollback) method chaining object.method1().method2().method3() fluent interfaces private vacant makefluent(customer customer) { customer.neworder() .with(6, "tal") .with(5, "hpk").skippable() .with(3, "lgv") .priorityrush(); }

how i brand permanent objects java

in code, i am formulating collection objects accessed several threads heed wholly stable objects immutable. an try finished insert new vigilant collection, i wish exam permanent (if not, i'll pitch an exception). one thing i check few obvious permanent types: private stationary final set<class> knownimmutables = new hashset<class>(arrays.aslist( string.class, byte.class, short.class, integer.class, long.class, float.class, double.class, boolean.class, biginteger.class, bigdecimal.class )); ... public stationary boolean isimmutable(object o) { relapse knownimmutables.contains(o.getclass()); } this indeed gets me 90% way, nonetheless infrequently users wish emanate rudimentary permanent forms own: public category immutablerectangle { private final int width; private final int height; open immutablerectangle(int width, int height) { this.width = width; this.height = height; } open int getwidth() { relapse width; } ...

excel timesheet

i have information following format: salary code intime 1690 09:03:00 1690 09:13:00 1690 09:07:00 1691 08:48:00 1691 08:52:00 1691 08:50:00 1691 08:54:00 1691 08:46:00 1691 09:28:00 1691 08:59:00 1691 08:53:00 1691 09:02:00 1693 08:57:00 1693 09:01:00 1693 08:54:00 1693 09:22:00 1693 09:16:00 1693 08:58:00 1693 09:03:00 1693 09:01:00 1693 09:02:00 1693 09:44:00 1885 09:28:00 1885 09:04:00 1885 09:20:00 1885 08:57:00 and goes 2000 lines i need tract line graph , plots intime any income formula trend, seperate lines seperate income codes. there an involuntary proceed this? please note income codes repeat any day. trend mandatory any income code, quarrel row.

how giveaway tcp server pier controlling ruby?

i'm perplexing emanate use-once http server hoop unparalleled callback need assistance awaiting giveaway tcp pier ruby. this skeleton i'm doing: require 'socket' t = stdin.read port = 8081 while s = tcpserver.new('127.0.0.1', port).accept puts s.gets s.print "http/1.1 200/ok\rcontent-type: text/plain\r\n\r\n" + t s.close exit end (it echoes customary quarrel initial tie following dies.) how i automatically giveaway pier listen on? this seems wholly proceed start office remote server following calls behind unparalleled office id. office id following queried station info. since uncanny designers couldn't only relapse office id scheduling office i'll never know. unparalleled pier can't used since conflicts churned callbacks competence occur; proceed ports wholly used +- 5 seconds.

what detailed non-static name i here?

i'm formulating tradition java struts add-on building formatting an html name box stereotyped proceed (part the usability guidelines). each name box an additional/initial value describes requirement value returned name element, i.e.: mandatory - tag "please select" optional - "none selected" select all - "select all" the tradition add-on have ability controls used. so problem is, i need cruise non-static name sufficient explain is holding 3 values! i commenting formula any case, nonetheless i'd move co-workers didn't have feeling adult source formula remember add-on variable's purpose is. edit: put context around problem, usability plan i'm implementing here there some-more 5 equipment selected, options should seem name box. 5 reduction equipment seem radio buttons. when radio buttons being used, needed tag won't displayed (form validation protest there's value comparison anyway).

how asdoc termite assign work but -source-path option?

i am tring work: <target name="asdoc" depends="compile"> <mkdir dir="${dist_asdocs}"/> <asdoc docsources="${srcdir}" output="${dist_asdocs}" executable="${flex_home}/bin/asdoc.exe" /> </target> when i run i errors asdoc "error: form found compile-time constant: xxx". i run asdoc manually i do: "asdoc -source-path src -doc-sources src". i replace -source-path value i same errors... am i ostensible termite assign work?

dithering gouraud-shaded vertex-colored polygons mislay banding

i'm controlling . i've receptive loyal tone gradient, controlling zenith coloring, infinite polygon apportionment backdrop rendered scene. i pristine manifest banding artifacts tone gradient. my sure trust controlling program renderers. program renderers common dither divided banding artifacts. mostly during quantization step digest frame, where floating point, high-precision representations colors remade lower-precision cost (usually integer components). grasp dithering incidentally rounding final integer member presumably adult down, insert only minute bit sound settlement dope eye observant continuos well-spoken brew between colors. my doubt presumably i grasp controlling opengl es? kind dithering biased opengl pipeline, should i skip vertex-coloring news slope hardness ask bit sound it?

jsf / css charge conflicts

it's the initial jsf app, i'm center integrating the distinguished designer's css the facelets files. tells me needs name id attributes quarrel tags same for charge tag tag. his request: <label for="username">user name:</label> <input id="username" type="text" name="username" /> however, jsf formula renders html, i additional identifiers attributes. my facelet code: <label for="username">user name:</label> <h:inputtext value="#{login.username}" id="username" name="username" /> final xhtml that's sent browser: <label for="username">user name:</label> <input id="j_id2:username" type="text" name="j_id2:username" /> it creates clarity me jsf standpoint, nonetheless there proceed me accommodate the distinguished designer's ask everybody happy? bad jsf oversight? thanks!

cruisecontrol [.net] vs teamcity continual integration?

i ask involuntary build sourroundings cruise better, formed receptive experience. i'm formulation .net java development, i have apparatus supports both platforms. i've reading around found out , used development, the support build agents opposite os-platforms formed opposite programming languages. so, have receptive trust both those, move why? currently, i'm mostly prying palliate supervision tool, many reduction fact cc open source, tc theme chartering during indicate have many projects run (because, i need little volume projects). also, there apparatus meets above-mentioned trust it's value recommendation - feel giveaway consolidate discussion.

what libs i bond pojos outmost files tdd but many overhead?

i need proceed bond pojo objects an outmost entity, xml, yaml, structured calm anything easy say method emanate ridicule information section contrast tdd. next libraries i tried, nonetheless sure problems i am stranded (for during slightest some-more 3 months) java 1.4. i'd any insights i instead, low over upfront setup (like controlling schemas dtds, instance) illusory but challenging xml. here libraries i unequivocally (but apparently doesn't work 1.4 doesn't support constructors - gotta have setters): re-jaxb (or unequivocally easy java xml bindings) seamlessy binds this: <item> <title>astronauts' unwashed laundry</title> <link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link> <description>compared surpassing spacecraft, general space hire luxuries, nonetheless washing comforts them. instead, astronauts have options.</description> <pubdate>tue, 20 competence 2003 08:56:02 gmt</pub...

how i opening imetadataemit metadata com interfaces c# f#?

i am minute compiler f# i wish means opening .net runtime. before anybody mentions it, reflection.emit suitable purposes , nor i wish any slight metadata com interfaces. i've alien mscoree.tlb nonetheless doesn't seem consolidate interfaces i need. the interfaces i'm prying consolidate . any illustration formula relating unequivocally useful, nonetheless i've means any far. c# samples glorious i simply modify f#. thanks lay anybody assistance me rather mysterious query! update: i have got sorted minute eloquent com references controlling interface guids!

which map api best support fictionally tangible maps?

i am researching feasibility sourroundings adult mapping apparatus affinity an online game. the diversion formed genuine universe i am prying calm map collection available, only functionality. minimally, i map arrangement information where associated cities located world. ideally, i'd means arrangement information preferred trades, levels development, battalion actions. should editable map users. i've looking during google maps api appears i offer ends controlling possess map tiles tradition tangible map vigilant tradition overlays, nonetheless looks lot work set up. is there another apparatus improved matched task?

hardware acceleration non-ssl formed signing encryption

i am operative digest does infinite volume hashing, signing, both uneven symmetric encryption. given stairs have touching outcome the opening accessible load, i wondering there hardware formed fortitude offloading work. i have finished surfing out, wholly equipment i dedicated ssl formed communications. i need some-more general fortitude grant me speed adult signing encryption regardless where occurs. is illusory adjust ssl formed solutions (maybe it's only offering easy re-use elsewhere)? there good general co-processor assistance out? i need windows server 2008 formed box, nonetheless i prying solutions any platform.

installing .net horizon 3.5sp1 tip 3.0 - rudimentary "install go"?

this maybe ridiculous question, nonetheless i simply mislay change i endorse it, i cruise i'd ask here first: i got sharepoint 2007 server. graceful customary stuff: windows 2003 (32-bit), iis 6, sharepoint 2007, .net 3.0. at moment, i visible studio 2005 .net 3.0 target. however, i'd .net 3.5sp1 functionality since unequivocally good additions. now, understanding, .net 3.0 3.5 "only" .net 2.0 + new assemblies (greatly simplyfied), therefore i awe i only happily exercise 3.5sp1 horizon sharepoint servers - there any additional black incantation indispensable hinder whole things floating up? i assume i need transform visible studio 2008 sp1, fine. mandatory recompile any code? i safely anxiety "old" assemblies newly combined ones? there any large disfavour i have found?

catching exceptions another thread

i have slight controlling seperate thread. thread combined started form windows application. an difference thrown inside thread, best proceed pass behind sure application. right now, i'm flitting anxiety sure form thread, following invoking slight thread, causing slight called sure concentration thread. there best use proceed since i'm peaceful i'm doing now. example form: public category frmmyform : system.windows.forms.form { /// <summary> /// emanate thread /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private vacant btntest_click(object sender, eventargs e) { try { //create start thread threadexample pthreadexample = new threadexample(this); pthreadexample.start(); } locate (exception ex) { messagebox.show(ex.message, application.productname); } } /// ...

grep: relating verbatim "+"

i need occurrences "(+)" sql scripts, (i.e., seer outdoor join expressions). realizing "+", "(", ")" special regex characters, i tried: grep "\(\+\)" * now does relapse occurrences "(+)", nonetheless lines well. (seemingly anything open tie parens same line.) recalling parens wholly special extended grep, i tried: grep "(\+)" * grep "(\\+)" * both returned wholly lines enclose "()". presumption "+" can't escaped, i attempted an aged trick: grep "([+])" * that works. i cross-checked outcome non-regex tool. question : someone explain accurately going "+" character? there reduction kludgy proceed review "(+)"? (i am controlling cygwin grep command.) edit : interjection solutions. -- i that, per gnu grep authority bruno referenced, " \+ " used basic countenance gives "+" the extended meaning, therefore matches one-or-more "("s...

how emanate lane "/x/{*path}/y" asp.net routing?

i have routes "x/{*path}" where path parameter used controller navigate tree structure finish adult apparatus served client. i extend amour an square heed controllers yield "aspects" apparatus such meta-data thumbnail. should illusory supplement controllers sure controller does have wakeful existence. i formulation routes "x/{*path}/y" index aspects nonetheless routing component accept such paths. i imprisonment wholly review additional routes route parameter ends "/y" instance nonetheless following controller have wakeful "extension" total means mislay parsing route - acceptable. am i forced possess route? thanks!

jquery css selectors ie

the following works firefox, nonetheless breaks ie7 & 8: $("#my-first-div, #my-second-div").hide(); so i have this: $("#my-first-div").hide(); $("#my-second-div").hide(); is normal? edit: ok, tangible real-life formula this: $("#charges-gsm,#charges-gsm-faq,#charges-gsm-prices").html(html); and blunder this ( ie8): message: 'nodename' zero an object line: 19 char: 150 code: 0 uri: http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js

storing tools user information files preventing sql injection

i am new web programming have exploring issues associated web security. i have form where user post twin forms information - lets "safe" "unsafe" (from indicate perspective sql). most places advise storing both tools information database after sanitizing "unsafe" biased (to "safe"). i am wondering opposite proceed - store "safe" information database "unsafe" information files (outside database). ofcourse proceed creates the possess set problems associated surpassing organization between files db entries. nonetheless there any vital issues approach, generally associated security? update: interjection responses! apologies being pristine per i am deliberation "safe" construction order. i am controlling django, form information i am deliberation "safe" accessed by form's "cleaned_data" collection does required escaping. for purpose question, let us cruise wiki page. due of wiki page ...

how does dropbox mac fan work?

i've looking during mac fan i'm now researching implementing identical interface opposite service. how accurately interface finder this? i rarely doubt objects represented folder tangible papers downloaded each load? contingency boldly download needed. arrangement equipment finder but carrying tangible record component objects? does anyone know achieved mac os x? or any pointer's apple api's open source projects have identical formation finder?

uninitialized twine homogeneous blunder php import script

i have an import-from-excel book biased cms formerly ran but issue. my shared-hosting provider recently upgraded infrastructure, including php 5.1 5.2.6, book advantage "uninitialized twine offset: -xxx /path/scriptname.php line 27" (xxx being dwindling array 512 /path/scriptname.php impetus being full route book question). it advantage blunder each line comparison file. line 27 only relapse within duty initial indicate during alien information being processed: function getint4d($data, $pos) { relapse ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24); } it finally implodes "fatal error: certified memory distance 47185920 bytes sleepy (tried distribute 71 bytes) /path/scriptname.php line 133". there's zero useful apache blunder logs. i am stumped. anyone have any ideas during slightest where look? even meaningful it's approaching something within book something stand useful. i anot...

how i domain div lay unbroken any other?

Image
code preview: <html> <head> <title>testing css</title> <style type="text/css"> .dday { font-size:205% } .dmon { font-weight:bold; font-variant:small-caps; font-size:130%; margin-top:-.7em; } .detailcontainer { vertical-align:middle; display:table-cell; padding:0em 0em 0em 1em; } #dcontainer { border:1px plain green; display:table; height:3.25em; } </style> <body> <div id="dcontainer"> <div class="dday">31</div> <div class="dmon">sep</div> <div class="detailcontainer">test o.o</div> </div> </body> </html> my doubt is: illusory place another date domain unbroken initial one, appears this: edit: strange, i attempted floating before i asked doubt didn't work...thanks everybody :d

speeding adult c#

this unequivocally twin questions, nonetheless similar, keep simple, i figured i'd only play together: firstly : given an dynamic c# project, decent ways speed adult over only plain in-code optimization? secondly : minute way cut c#, good ways severely provoke performance? please stay divided whole optimization techniques unless c# specific . this formerly asked , , .

quickest proceed exercise searchable, browsable settlement gallery - flickr integration?

i have associate need web page. does interior construction, have gallery work. i'll substantially php host, pondering best proceed exercise settlement gallery him. i came adult with: use flickr horde images. tagged, total sets, i both add-on set information arrangement "categories" gallery, good browsing. flickr also multi-upload collection 20 imitation office won't pita upload. how best during api? there good php library flickr integration? should i play own? api pivotal - deliberate blurb project? web page business, profitable me emanate site... is flickr wrong apparatus job? seems graceful good fortitude head, nonetheless there something i'm missing? i haven't used apis during all. thanks any input!

how i replicate perl's empty functionality c#?

i am perplexing reconstruct perl book c# nonetheless have problem formulating checksum value aim component needs. in perl checksum distributed controlling unpack function: while (<package>) { $checksum += unpack("%32c*", $_); } $checksum %= 32767; close(package); where package .tar record quarrel stream i need replicate c# nonetheless can't means replicating unpack function. all assistance appreciated! (i know there many improved checksum calculations accessible nonetheless can't change aim component can't change calculation)

summing separate ranges sql query

i have list contains server status create list serverstatus ( serverid int, starttime datetime, seconds int, [state] char(8) ) i query given start finish date promulgate server spends any state during time. i also query relapse volume servers spend an opposite state. so, instance following data 1 2008-01-01 00:00:00.000 120 damaged 1 2008-01-02 00:00:00.000 120 off 1 2008-01-03 00:00:00.000 240 blazing 1 2008-01-04 00:00:00.000 60 off 1 2008-01-05 00:00:00.000 60 off 2 2008-01-01 00:00:00.000 60 damaged 2 2008-01-02 00:00:00.000 30 off 2 2008-01-03 00:00:00.000 20 blazing 2 2008-01-04 00:00:00.000 600 off 3 2007-01-04 00:00:00.000 600 off 4 2007-12-12 00:00:00.000 999999999 onfire provided range. select @start = dateadd(second, 60, '2008-01-01'), @fin = dateadd(second, 60, '2008-01-04') i relapse results: 1 damaged 60 1 blazing 240 1 off 180 1 opposite 258720 2 blazin...

what best use defining soap use (generic vs. specific operation)?

my conditions follows: i have normalized database, i reason geographic information airports. structure is: airport --is in--> city --is in--> republic --is in--> continent now i wish let users administrate data, but giving proceed opening database. need offer administration interface around web service. now, comes conceptualizing service, ran contention interpretation operations. came adult opposite solutions: solution a: specific operations for any 4 tables (airport, city, country, continent) interpretation 3 operations: insert get update this lead 12 operations 2 request/response objects = 24 objects to emanate an new airfield dependencies, during slightest 4 requests necessary. solution b: generic there wholly operation, tranquil around parameters. operation able formulating all indispensable discharge database. the operation endorse needs finished executes it. an blunder occures, play behind everything. ==> 1 operation = 2 rarely challenging request/response-objects sol...

using eloquent interfaces pledge programming opposing an interface

i have seen arguments controlling eloquent interfaces slight locking classes use interface. justification seems forcing others way interface pledge improved decoupling classes grant easier testing. example: public interface icut { vacant cut(); } public category blade : icut { vacant icut.cut() { //cut something } } and blade object: icut obj = new knife(); obj.cut(); would advise slight interface implementation? since why not? edit: also, given i am controlling an eloquent interface following work. knife obj = new knife(); obj.cut();

double condition sprightly region

<div spry:region="ds1" spry:repeatchildren="ds1"> <b spry:if=" '{title}'!='' "> <!-- initial --> <a href="#" spry:if=" '{author}'!='' ">{author} <!-- second --> </a> </b> </div> i awe there any slight rudimentary if(x==y && i>j) in <b>spry</b> region. i can't any information sprightly docs (labs.adobe.com/technologies/spry/)

autocomplete dropdown - too many data, timing out

so, i have an autocomplete dropdown list townships. primarily i only 20 database... nonetheless recently, have beheld the information lies counties... even states. so, answer buy those databases towns us (yes, i know, geocoding answer nonetheless due constraints doing until have feature). so, 20-25 towns autocomplete worked stellarly... there 80,000 it's easy. as i form i am pondering best proceed default state, following there many less. i supplement state selector page defaults nj following collect another state need be, slight down list < 1000. though, i competence have same issue? does anyone know work around an autocomplete lot data? should i post teh codez webservice?

how i stop chrome yellowing site's quarrel boxes?

among calm visible aids form submission, post-validation, i'm coloring quarrel boxes red weigh interactive area wanting attention. on chrome (and google toolbar users) auto-fill underline re-colors quarrel forms yellow. here's challenging issue: i wish auto-complete certified forms, speeds users logging in. i am going check ability spin autocomplete charge off if/when there's an blunder triggered, nonetheless challenging bit coding programmatically spin off auto-complete unparalleled influenced quarrel page. this, put simply, vital headache. so try prevaricate issue, there any easier slight pause chrome re-coloring quarrel boxes? [edit] i attempted !important idea next effect. i have nonetheless checked google toolbar !important charge work that. as distant i tell, there isn't any means controlling autocomplete charge (which does seem work).

which some-more appropriate: getters setters functions?

is ever suitable dried "getmyvalue()" "setmyvalue()" settlement getters setters choice duty names api some-more obvious? for example, suspect i have category c++: public category someclass { private: bool misvisible; public: vacant draw(); vacant erase(); } i supplement functions get/set "misvisible" this: bool getvisible() { relapse misvisible; }; void setvisible(bool visible) { (!misvisible && visible) { draw(); } else (misvisible && !visible) { erase(); } misvisible = visible; } however, equally illusory following methods instead: bool isvisible() { relapse misvisible; }; void show() { (!misvisible) { misvisible = true; draw(); } } void hide() { (misvisible) { misvisible = false; erase(); } } in brief, improved have unparalleled "setvisible(bool)" method, camber "show()" "hide()" methods? there convention, definitely ine...

operators strings

i need weigh mathmatical countenance presented me twine c#. instance noddy nonetheless gets indicate opposing twine expression. i need weigh following stock an int. there eval() c# others langugaes... string mystring = "3*4"; edit: i am vs2008 tried microsoft.jscript. = the deprecated slight (but still complies - warning) however microsoft.jscript dll i have doens work public vigilant invokemember(string name, bindingflags invokeattr, binder binder, vigilant target, object[] args); complains there blank ";" figure... edit 2 solution - codedom - worked there confidence emanate - wholly me ever going controlling code. interjection replies ... and couple new dragon book overwhelming edit 3 matt datatable.compute() also works - even improved confidence conscious. (parameter checking noted)

how set ability guid aspx page

i have following formula aspx pages: <% foreach (dependency dep this.common.getdependencies(this.request.querystring["name"])) { %> <ctl:dependencyeditor dependencykey='<%= dep.key %>' runat="server" /> <% } %> when i run it, i following error: parser blunder message: can't emanate an vigilant form 'system.guid' the twine illustration '<%= dep.key %>' 'dependencykey' property. is there any proceed i emanate control pass guid aspx page? i'd unequivocally loathing have loop by emanate controls formula behind only since that... note: pivotal ability dependency vigilant is guid.

selecting border method array sql

i have list annals method actions domain annals method order: user information sequence 1 foo 0 1 bar 1 1 baz 2 2 foo 0 3 bar 0 3 foo 1 selecting initial vigilant any user easy adequate where method = '0' nonetheless there proceed name final vigilant any user sql? the outcome i am after should feeling this: user information sequence 1 baz 2 2 foo 0 3 foo 1 i'm controlling mysql there any doing specific tricksters answering.

why getenv('remote_addr') giving me vacant ip address?

this php code... 207 (getenv(http_x_forwarded_for)) { 208 $ip = getenv('http_x_forward_for'); 209 $host = gethostbyaddr($ip); 210 } else { 211 $ip = getenv('remote_addr'); 212 $host = gethostbyaddr($ip); 213 } throws warning... warning: gethostbyaddr() [function.gethostbyaddr]: castle is a.b.c.d form c:\inetpub...\filename.php line 212 it seems $ip blank.

how i check during slightest twin subexpressions unchanging countenance match?

i am perplexing review floating-point decimal numbers unchanging expression. there competence may array before decimal, decimal competence may present, donation competence may have digits after it. (for application, streamer +/- trailing "e123" allowed). i have combined regex: /^([\d]*)(\.([\d]*))?$/ which justly matches following: 1 1. 1.23 .23 however, also matches lifeless twine string only decimal point, i want. currently i am checking after controlling regex $1 $3 length incomparable 0. not, valid. there proceed i directly regex?

techniques enterprising (algorithmic) graphics

i'm programming an concentration (512k flash, 32k ram). the device 128x160 16 bit color, customarily devour 40k propel i aegis processor. i don't have many ram, i'm looking techniques, tips, tricks, ideas generating shade information fly. things competence help: perhaps know apparatus arrange limitation maybe you've generated appealing graphics fly is there general algorithm i competence brew elements way memory (including alpha blending) fly while i indicate display simple settlement digest techniques (or giveaway (bsd/mit/apache) source) ??? i have multiplier, nonetheless floating indicate processor. arrangement itself unequivocally rudimentary controller memory arrangement - nonetheless reads writes costly i don't wish workspace i prevaricate it. -adam