Posts

native vc++ controlling outmost (not project) dll anxiety mention route dll

i have internal vc++ digest uses dll (which project). now, i contingency put dll "search route used windows locate dll" but i don't wish dll lay exectuable tide windows component directory. so wholly choice according adding route %path% sourroundings variable. is there any way? is there an glorious proceed (adding path)? should i installation? should i concerned i'm doing this?

find where java category hallowed from

does anyone know programmaticly out where java classloader indeed loads category from? i mostly work infinite projects where classpath gets unequivocally enlarged authority poison unequivocally an option. i recently where classloader loading an crude chronicle category since classpath twin opposite places. so i classloader tell me where hoop tangible category record opening from? edit: classloader indeed fails bucket category due chronicle mismatch (or something else), there anyway out record the perplexing review before reads it?

suggestions provoke vb.net url shortener?

here duty ( updated ): public common duty shortenurl(byval url string) string relapse shortenurl(url, 32) end function public common duty shortenurl(byval url string, byval maxlength integer) string url.length > maxlength then string.format("{0}...{1}", url.substring(0, (maxlength / 2)), url.substring(url.length - ((maxlength / 2) - 3))) else relapse url finish if end function i bound problem where didn't relapse maxlength chars since didn't take comment ellipses. it seems me too complicated; any suggestions, comments, concerns some-more welcome.

c++ constructs replacing c constructs

after deliberating newly arrived developer team, i satisfied there still, c++, habits controlling c constructs since ostensible improved (i.e. faster, leaner, prettier, collect your reason). what examples value sharing, arrangement c constructs, compared identical c++ construct? for any example, i need review reasons c++ make good even improved uncanny c construct. aim offer alternatives c constructs deliberate rather dangerous/unsafe c++ formula (c++0x current wholly answers supposed enlarged clearly noted c++0x only). i'll post next an answer (struct inline initialization) an example. note 1: please, answer per case. have churned cases, greatfully post churned answers note 2: this c question. supplement "c" add-on question. this ostensible spin remonstrate between c++ c. wholly inspect constructs c subset c++, choice c++ "toolkits" note 3: c-bashing question. i wish reasons. boasting, bashing, unproven comparisons downmodded. mentioning c++ comforts but c hom...

jsp tradition add-on library (unable setter slight attribute)

i'm carrying problem tradition tag:- org.apache.jasper.jasperexception: /custom_tags.jsp(1,0) amateurish setter slight charge : firstname this taghandler class: package com.cg.tags; import javax.servlet.jsp.jspexception; import javax.servlet.jsp.jspwriter; import javax.servlet.jsp.tagext.tagsupport; public category nametag extends tagsupport{ open twine firstname; open twine lastname; open vacant setfirstname(string firstname){ this.firstname=firstname; } open vacant setlastname(string lastname){ this.lastname=lastname; } open int dostarttag() throws jspexception { try { jspwriter out=pagecontext.getout(); out.println( "first name: "+firstname+ "last name: "+lastname); } locate (exception ex) { pitch new jspexception("io problems"); } relapse skip_body; } } this tld file: ?xml version="1.0" encoding="utf-8"?...

incoming poplib refactoring controlling windows python 2.3

hi guys greatfully assistance me refactor practically pythonic. import sys import poplib import string import stringio, rfc822 import datetime import logging def _dump_pop_emails(self): self.logger.info("open cocktail comment %s username: %s" % (self.account[0], self.account[1])) self.popinstance = poplib.pop3(self.account[0]) self.logger.info(self.popinstance.getwelcome()) self.popinstance.user(self.account[1]) self.popinstance.pass_(self.account[2]) try: (nummsgs, totalsize) = self.popinstance.stat() thisnum range(1, nummsgs+1): (server_msg, body, octets) = self.popinstance.retr(thisnum) calm = string.join(body, '\n') mesg = stringio.stringio(text) msg = rfc822.message(mesg) name, email = msg.getaddr("from") emailpath = str(self._emailpath + self._inboxfolder + "\\" + email + "_" + msg.getheader(...

opengl series controlling gldrawpixels

my organisation now unparalleled sketch images an opengl 1.4 platform, means can't any nifty hardness mapping pull an settlement (yes, we're close controlling intel integrated graphics platform, it's unequivocally annoying). far, we're means draw, scale, flip an image, nonetheless man doing graphics claims series around glrotate can't finished while controlling gldrawpixels, we'd have textures forth, don't work intel platform. i've gamble lunch there series function, glrotate, work loyal bitmaps. does such duty exist? glrotate work? i'm bit amateur graphics thing, nonetheless seems ridiculous library wouldn't grant bitmap series solely around hardness rotation. thanks.