Posts

Showing posts from January, 2015

merging files sourcesafe

all, i now have twin projects underneath sourcesafe i am amateurish quit the svn server array reasons. however i am now slight perplexing combine fixes digest other. i know sourcesafe isn't best during nonetheless slight i am going by only quite tedious compare files identyfying the changes i need merge. copy and paste applicable changes the desired project test commit this doesn't seem too bad nonetheless churned changes churned files need reviewed apropos nightmare. does anyone have any methods lift out??

converting xml-rpc json javascript

can anyone advise lightweight javascript xml-rpc library? after researching while ago, i couldn't anything i peaceful with, i kinda finished adult minute own. however, maybe stupid, there contingency something suitable out there!? my possess pseudo-library especially blank proceed spin an xml-rpc response json - rather, converting particular responsexml javascript vigilant (converting needed). this isn't tough do, nonetheless since reinvent wheel... any assistance severely appreciated!

how thousands association names?

how i beget thousands association names contrast demo purposes? (address, phone number, associated information good too.) i've got component i'm building includes business hit information. graceful common doubt. my test/demo database now incidentally generated individual's names hallowed (thanks permitted irs spreadsheet i found). worked good middle contrast hearing purposes, nonetheless looks unequivocally rare shown imminent customers. i've attempted several online open information sources (e.g. edgar, county formed ability annals searches), nonetheless need me manually hook together law blocks 50 names during time. i this, nonetheless unequivocally anticipating hunt use information store out there form information straightforwardly searchable retrievable unequivocally infinite batches.

email summary remember does indeed work?

i asked remember summary i sent out mislay personal info reinstate general finished adult chairman an example. does summary remember unequivocally work? it's opinion since told summary removed only causes wish out uncanny message. someone already review it. can sell server practiced tell users summary removed replaced? what bcc, remember doesn't seem work tellurian emails tend ones unequivocally need recall. edit also smartphones common don't seem email retrieved phone either

find position node controlling xpath

anyone know position node controlling xpath? say i have following xml: <a> <b>zyx</b> <b>wvu</b> <b>tsr</b> <b>qpo</b> </a> i following xpath query name third <b> node (<b>tsr</b>): a/b[.='tsr'] which good good nonetheless i wish return ordinal position node, something like: a/b[.='tsr']/position() (but bit some-more working!) is even possible? edit : forgot plead am controlling .net 2 it's xpath 1.0! update : finished adult controlling 's . those prying here's doing c#: int position = doc.selectnodes("a/b[.='tsr']/preceding-sibling::b").count + 1; // check node indeed exists if (position > 1 || doc.selectsinglenode("a/b[.='tsr']") != null) { console.writeline("found during position = {0}", position); }

inline book does solve asp.net tradition control

currently i am operative custom unchanging countenance validator (unfortunately) . i am perplexing set regex settlement controlling server side inline book this: validationexpression="<%= regexstrings.somepattern %>" however, book solution server side code. instead being interpreted literally i finish adult something rendered markup: ctl00_defaultcontent_regexvalidatorinvitation.validationexpression = "<%= regexstrings.somepattern %>"; any clues since solution properly?

defaulting webparts users mysite sharepoint

i am operative digest replacing an aged portal component (plumtree) sharepoint wish transition well-spoken possible. one thing feeling during now holding gadgets (plumtree reign webparts) origination certain seem same place users new mysite. plumtree binds information rudimentary list containing user, page, apparatus position information. i wish proceed automate reading list putting new webparts users mysite have manually set adult hundreds users. i'm told modifying sharepoint tables sql server directly good choice competence impact the support arrangements, nonetheless saves doing palm following i concider it. other options open mind formulating homogeneous list controlling api calls bucket webparts initial user accesses mysite. any improved suggestions?

wcf blunder logging during use boundary

i'm perplexing exercise an ierrorhandler wcf use method record each difference hits use range before it's upheld client. i already ierrorhandlers translating exceptions typed faultexceptions, unequivocally useful. according msdn ierrorhandler.handleerror(), it's also commanded used logging during boundary. the problem is, handleerror duty isn't guaranteed called operation thread, i can't figure out information operation triggered exception. i targetsite out difference itself, nonetheless gives me interior slight instead operation. i also parse by stacktrace twine figure out where thrown, nonetheless seems small frail hokey. there any consistent, upheld proceed any state information (messages, operationdescription, anything) while handleerror function? any ways automatically record exceptions use calls? i'm looking fortitude exercise production, controlling existent logging framework, svctraceviewer won't me. thanks.

daylight saving changes inspiring utc conversion

basically i'm converting internal dates stored database utc. nonetheless i've review somewhere illumination saving manners have altered 2007. does date.touniversaltime() duty still work correctly. fundamentally dates before 2007(when new manners came effect) converted justly nonetheless dates after not. am i right here? .net take caring reworking internally i.e. depending on opposite illumination saving rules? edit: dates stored db internal times. i am converting utc. date such '9 impetus 2005' should converted controlling light manners 2005 instead today's rules. manners altered us 2007. date opening out wrong hour.

how exercise an lru cache java?

please don't contend ehcache oscache, etc. assume functions doubt i wish exercise possess controlling only sdk (learning doing). given cache used multithreaded environment, datastructures use? i've already implemented controlling , nonetheless i'm extraordinary any new indicate collections improved candidates. update: i only reading by i found nugget: if need constant-time opening wish say insertion order, can't improved linkedhashmap, truly smashing information structure. wholly proceed presumably some-more smashing there indicate version. nonetheless alas. i pondering roughly accurately same thing before i went linkedhashmap + collections#synchronizedmap doing i mentioned above. good know i hadn't only abandoned something. based answers far, sounds best gamble rarely indicate lru extend controlling same explanation linkedhashmap uses.

putting copyright representation python file

i need consolidate copyright matter during tip each python source record i produce: # copyright: © 2008 etc. however, i following run such record i message: syntaxerror: non-ascii impression '\xa9' record myfile.py line 3, nonetheless encoding declared; details. apparently python isn't happy copyright representation since assumes source record ascii. presumably i need initial line be: # -*- coding: iso-8859-1 -*- to tell python i'm controlling latin encoding, i change copyright matter to: # copyright: \xa9 2008 etc. which only presumably doesn't have same authorised standing. is there some-more glorious solution?

midl generates same record /env win32 /env win64

in visible studio, accumulate foo.idl, midl generates surrogate information foo_p.c. unfortunately, win32 x64 files, uses same filename. win32, record starts with: #if !defined(_m_ia64) && !defined(_m_amd64) for x64, record starts with: #if defined(_m_amd64) when build win32 following immediately build x64, doesn't reinstate foo_p.c file, definition digest fails link. i attempted carrying pre-build eventuality deletes foo_p.c record it's wrong architecture, nonetheless vs doesn't even worry run step. how should i i build settlement following other?

how i check .net public freshness?

all, i'm operative sharepoint project, nonetheless isn't sharepoint-specific doubt per-se. i have an public i've deployed sharepoint farm, i'd establish presumably "newest version" sitting gac, an comparison chronicle late yesterday sitting there instead. exam farm, yes, revving versions constantly. without doing anything crazy changing public chronicle itself each i compile*, there public ability i check (or set during compile-time)? *i should clarify, sharepoint projects hardcode assembly's full name churned places (including xml files), changing public chronicle reduction tasty choice competence think.

how i wholly arrangement equipment go certain user (using restful_authentication)?

i have web concentration users documents. any user have documents: user.rb: has_many :documents document.rb: belongs_to :user document_controller.rb: def index @documents = document.find(:all) end i am controlling restful_authentication plugin. here question: i controller wholly arrangement papers belongs any user? right shows papers users. i am controlling latest chronicle rails.

imageurl misplaced postback enterprising controls, nonetheless textboxes keep value

i have symbol adds an already tangible usercontrol programtically. i am rebuilding any control postback arrangement adult fine. i put calm textbox shows adult fine, however images losing url. any thought since i repair this? i attempted adding ajax updatepanel help, nonetheless does not. to offer explain - i have symbol after clicks set url settlement - i also put value textbox only same thing happens - after postback, textbox still value, nonetheless settlement does - asp.net images remove settlement tangible right controls (ie: imageurl) --- update ok, i have found some-more understanding emanate - solutions nonetheless still problem remains. the reason images loosing url since asp.net images - asp.net remembers values recreated postback - however sure settlement im changing around javascript looses the value - i'm unequivocally certain since controlling javascript change it, post behind reverts behind before value... fortitude i try things dark value, following value postback...

no order aim consoleio.c

in , i've found djgpp wholly accept dos management line impression limit. work around limitation, i've solid try makefile grant me . slight hacking together makefile contrast it, i've opposing uncanny error. makefile follows: as := nasm cc := gcc ld := ld target := $(shell basename $(curdir)) build := build sources := source cflags := -wall -o -fstrength-reduce -fomit-frame-pointer -finline-functions \ -nostdinc -fno-builtin -i./include asflags := -f aout export cost := $(curdir)/$(target) cfiles := $(foreach dir,$(sources),$(notdir $(wildcard $(dir)/*.c))) sfiles := $(foreach dir,$(sources),$(notdir $(wildcard $(dir)/*.s))) sobjs := $(sfiles:.s=.o) cobjs := $(cfiles:.c=.o) objs := $(sobjs) $(cobjs) build : $(target).img $(target).img : $(target).bin concat.py $(target).bin : $(objs) $(ld) -t link.ld -o $@ $^ $(sobjs) : %.o : %.asm $(as) $(asflags) $< -o $@ $(cobjs) : %...

sharepoint 2007 - sql query list papers site collection

i need list papers site collection, i trust i presumably alldocs list alluserdata list (moss 2007 sp1) nonetheless i author information document. i need essence request (e.g. alldocstreams content) something this: select tp_dirname, tp_leafname, tp_version, tp_modified, tp_created from alluserdata where (tp_contenttype = 'document') and (tp_leafname '%.css') and (tp_leafname '%.jpg') and (tp_leafname '%.png') and (tp_leafname '%.wmf') and (tp_leafname '%.gif') and (tp_dirname '%template%') and (tp_iscurrentversion = 1) and (tp_leafname '%.xsl') order tp_siteid, tp_listid, tp_dirname, tp_leafname, tp_iscurrentversion desc is there improved proceed this?

decrypting ysod, techniques mayhem

how news this? server blunder / application object anxiety set an object description: vigilant anxiety set an object. exception details: system.nullreferenceexception : vigilant anxiety set an object. source error: line 56: posts.add(post); on some-more critical note, initial things feeling the yellow shade death? half debug snippet isn't indeed explanation problem (understandable i guess). i contingency admit, i still response.write some-more i should. i only idle going by debugger. techniques debug problem?

access kml placemarks google maps conceal around javascript?

i have kml record conceal an embedded google map controlling ggeoxml object. i'd means opening specific placemarks kml record javascript (for instance rhythm comparison polygon map response user action). ideally i'd something (pseudo-code): geoxml.getplacemarkbyname('foo').focus(); unforunately doesn't seem arrangement placemarks any internals kml overlay. does anyone have any thoughts i competence accomplish this? i don't know anything overlays implemented internally, nonetheless seems there competence penetrate let me this. i'm also controlling jquery fwiw.

in linq graphic vigilant fasten 2 tables?

given next tables. i graphic name given id 76 linq? **table s** sid otherid ------------------------------ 1 77 2 76 **table q** qid sid highlevelname lowelevelname --------------------------------------- 10 1 name1 engine 11 1 name1 sparkplus 12 1 name2 seat 13 1 name2 belt 14 1 name1 oil i wish relapse list name1 name2 the sql select distinct q.highlevelname from s join q q.sid = s.sid where s.otherid = 76 i also have objects represents any table. an answer vb c# acceptable.

asp.net localization page methods/web services around ajax

that's mouthful... here's issue, we're doing client-side validation around ajax calls page methods (which radically web services). we've also total drop-down page select your libel have combined category inherits page initializes localization formed drop-down selection. page methods removing called around ajax though, page isn't instantiated customarily therefore initialization localization isn't holding place. i've deliberate saving libel choice session, nonetheless doesn't solve problem each page slight have re-initialize localization method repremand libel files loaded. any thoughts understanding enterprising localization page methods web services? this the initial penetration localization i'm anticipating i'm blank something obvious...

advice bursting adult an application

i now have web app 3 front ends (depending url to) shares unequivocally small formula between 3 front ends. office structure looks this: \app1 \includes \html \app2 \includes \html \app3 \includes \html \crons \libs \logs \setup \db \shared \globalfunctions \oldapi \oldclasses the app folders sole front ends possess consummate includes docroot's 'html'. crons only cli jobs, libs newer php5 libraries such new formula things zend framework. logs app logs, setup setup info deployment, common aged php4 codebase formula still relies on. all stored large svn repo. what lucid proceed smack adult i spin large svn digest smaller ones it easier bend merge? many projects concentration unparalleled app anyway singular formula needs updated churned places. or improved keep tide structure only along pier php4 formula oo php5 naturally dump things out?

how best transform website subversion

i have php website corroborated mysql database little organisation programmers submitting formula subversion. typically code, exam locally, dedicate overthrow following duplicate altered files dark area online testing. however mistakes made. catchy i wish modernise site i know, but doubt, site formula database unequivocally represents what's subversion. i'd tie click fortitude illusory it's foolproof. what's best proceed that? btw, matters, arise windows machines.

why should i an ide?

in another question, speaks rarely ides, observant "some still only dont know "why" should one...". someone uses motion programming, works an sourroundings where most/all colleagues presumably motion emacs work, advantages ides? since should i one? i'm certain charged emanate people, i'm prying starting glow war, please wholly respond reasons trust an ide-based proceed superior . i'm prying contention since i shouldn't an ide; i already don't one. i'm prying contention "the side fence", speak. if cruise ides competence suitable forms work nonetheless others, i'm also prying hear why.

jsp usebean struts

i'm graceful new during take easy me. the formula i'm perplexing work is: <jsp:usebean id="ejd" class= "moverdetailform" scope="application"/> <jsp:setproperty name="ejd" property="empfdjoiningdate" param="empfdjoiningdate" /> <% twine empfdjoiningdate = ejd.getempfdjoiningdate(); out.print("please work" + empfdjoiningdate); %> empfdjoiningdate returning 'null' i assume cant moverdetailfom.java? this does exist public category moverdetailform extends abstractcandidateform { private twine empfdjoiningdate; /** * @return advantage empfdjoiningdate. */ public twine getempfdjoiningdate() { relapse empfdjoiningdate; } /** * @param empname empname set. */ public vacant setempfdjoiningdate(string empfdjoiningdate) { this.empfdjoiningdate = empfdjoiningdate; } any suggestions many appreciated. i'm stuck! thanks

manage infinite volume information images within

my doubt identical associate posted here...we perplexing arise an concentration supports presumably terabytes information formed land registry paraguay images normal data. the problem wish devaluate cost operation smallest illusory since its enemy between companies, reason wish giveaway database....i have review lot information nonetheless i am still confused. have comprehend gonna supervision db easy control during same time. what u advise me? thanu unequivocally much

what opening import converting bool c++?

[this doubt associated nonetheless same .] my compiler warns many converting casting certain forms bool since eloquent conversions furnish warning: long t = 0; bool b = false; b = t; // opening warning: forcing enlarged bool b = (bool)t; // opening warning b = bool(t); // opening warning b = static_cast<bool>(t); // opening warning b = t ? loyal : false; // ok, warning b = t != 0; // ok b = !!t; // ok this visible c++ 2008 nonetheless i think compilers competence have identical warnings. so doubt is: opening import casting/converting bool ? does eloquent reworking have improved opening business (e.g., certain aim architectures processors)? does excellent reworking somehow upset optimizer? microsoft's warning quite helpful. indicate there good reason nonetheless don't explain it.

why does store way i'm job over odbc destroy during same location?

i'm controlling library opening information ms sql server 2000 database (sp3? sp4?). particular, i'm controlling quite enlarged nasty stored procedure. i watch way govern sql profiler, however, tends stop guess during certain point. blunder codes exceptions thrown. i critique out nested matter always final statement, only ends rather before comment. i haven't attempted radically commenting out whole damn thing... i'm sourroundings query timeout 300 seconds. callable matter wholly advantage underneath 1 sec, but indeed finishing sp. any ideas? update0: i run sp around query analyzer tool... works. it's only around odbc tie fails. update1: i critique out code, execution ends offer sp. creates me cruise there timeout aegis border i'm controlling into.

destructuring assignment javascript

as seen mozilla changlog javascript 1.7 have total destructuring assignment. sadly i'm unequivocally lustful syntax (why b twice?): var a, b; [a, b] = f(); something have lot better: var [a, b] = f(); that still retrograde compatible. python-like destructuring retrograde compatible. anyway best fortitude javascript 1.5 i have means adult is: function assign(array, map) { var o = object(); var i = 0; $.each(map, function(e, _) { o[e] = array[i++]; }); relapse o; } which works like: var array = [1,2]; var _ = assign[array, { var1: null, var2: zero }); _.var1; // prints 1 _.var2; // prints 2 but unequivocally sucks since _ meaning. it's only an lifeless bombard store names. nonetheless sadly it's indispensable since javascript doesn't have pointers. and side distribute default values box values matched. also note fortitude doesn't try cut array. can't something {first: 0, rest: 0} . nonetheless simply done, wanted behavior. what improve...

strange mysql syntax error

i error:- you have an blunder your sql syntax; check authority corresponds your mysql server chronicle right syntax circuitously ' during line 1 whenever i attempted something this:- mysql> source /home/user1/sql/ddl.sql mysql> source /home/user1/sql/insert.sql mysql> source /home/user1/sql/cleanup.sql the intresting thing is, occur any each sql scripts nonetheless wholly initial matter corrupted. rest statements book run fine. i have worked around putting pygmy matter each script. anyone problem before? i am totally stumped checking google hadn't helped yet. interjection advance.

why xsl remade links out family base?

<a> <xsl:attribute name="href"> <xsl:value-of select="link" /> </xsl:attribute> <xsl:attribute name="target">new</xsl:attribute> <xsl:value-of select="title" /> </a> thats template, code: sb.append("<title>"); sb.appendformat("{0} - {1}", f.username, f.pointtypedesc); sb.append("</title>"); sb.append("<link>"); sb.appendformat("{0}", httputility.urlencode(url)); sb.append("</link>"); url "" but renders as: "" any ideas?

how around 'ns_error_illegal_value' blunder controlling ajax?

im only minute little ajax horizon re-usability little projects i've strike problem. fundamentally i ' ns_error_illegal_value ' blunder while eventuality ask i've thought happening. the html page (trimmed nonetheless shows error) <!doctype html open "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ajax test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript"> var finish = 4; var ok = 200; duty getxmlhttprequestobject() { var xmlhttprequestobject = false; if(window.xmlhttprequest) { if(typeof xmlhttprequest != 'undefined') { tr...

how should i supplement churned relating elements div jquery

i need supplement churned lifeless divs enclosing component controlling jquery. at impulse i am generating twine containing lifeless html controlling loop divstr = '<div></div><div></div>...<div></div>'; and following injecting container: $('#container').html(divstr); is there some-more glorious proceed insert multiple, relating elements? i'm anticipating something wouldn't smack chaining nonetheless wouldn't move browser the knees. chainable .repeat() plugin?

shortest sudoku solver python - does work?

i enactment around possess sudoku solver looking pointers good quick settlement i came opposing this: def r(a):i=a.find('0');~i exit(a);[m in[(i-j)%9*(i/9^j/9)*(i/27^j/27|i%9/3^j%9/3)or a[j]for j range(81)]or r(a[:i]+m+a[i+1:])for m in'%d'%5**18] from sys import*;r(argv[1]) my possess doing solves sudokus same proceed i solve conduct nonetheless does mysterious algorithm work?

name slight lists user groups where tide user member of

we exhilarated contention slight name. we have category user . there ability called "groups" user. contains groups enclose user directly. that's ok. have problem with, name slight recursively list user's groups "parent" groups relapse list groups, user deliberate member. user u = <get user>; ilist<usergroup> groups = u.xyz(); console.writeline("user {0} member of: ", u); foreach(usergroup g groups) console.writeline("{0}", g); my colleagues brought: u.getallgroups(); // groups? u.getmemberofgroups(); // doesn't sense u.groupsiammemberof(); // long u.memberof(); // short, nonetheless outline wrong u.getrolesforuser(); // don't work roles, getgroupsforuser ? u.getoccupiedgroups(); // definition correct? what name propose?

how i modify csv an html list controlling perl?

in code, i wish perspective information csv list form, nonetheless wholly displays final line. lines 1 2? here's data: 1,hf6,08-oct-08,34:22:13,df,jhj,fh,fh,ffgh,gh,g,rt,ffgsaf,asdf,dd,yoawa,dwp,tester,pattern 2,hf35,08-oct-08,34:12:13,dg,jh,fh,fgh,fgh,gh,gfh,re,fsaf,asdf,dd,yokogawa,dwp,dwp,pattern 3,hf35,08-oct-08,31:22:03,dg,jh,fh,fgh,gh,gh,gh,rte,ffgsaf,asdf,dfffd,yokogawa,dwp,dwp,ghh here's code: #! /usr/bin/perl print "content-type:text/html\r\n\r\n"; use cgi qw(:standard); use strict; use warnings; my $line; my $file; my ($f1,$f2,$f3,$f4,$f5,$f6,$f7,$f8,$f9,$f10,$f11,$f12,$f13,$f14,$f15,$f16,$f17,$f18,$f19); $file='myfile.txt'; open(f,$file)||die("could open $file"); while ($line=<f>) { ($f1,$f2,$f3,$f4,$f5,$f6,$f7,$f8,$f9,$f10,$f11,$f12,$f13,$f14,$f15,$f16,$f17,$f18,$f19)= separate ',',$line; } close(f); print "<html>"; print "<head>"; print "<body bgcolor='#4682b4'>"; prin...

lost disrespectful condense windows management prompt

i longer / during windows xp management prompt, seems have started after botched cygwin installation, e.g. cd /windows won't work, nonetheless used to. can anyone cruise competence have happened? oops! doesn't customarily work xp , nonetheless i review does vista. i simplified problem wrong. the genuine problem is: i controlling cwrsync binaries (meant cygwin use) used during management prompt proceed such as: ssh -i /keydir/keyfile user@server but after doing something (seems installing cygwin), even after reinstalling cwrsync files, i wholly do: ssh -i \keydir\keyfile user@server, i.e. i have windows party referring internal files. i posted cwrsync forum, nonetheless it's unequivocally active, i anticipating someone competence praise what's going here, i should maybe try cygwin forum too.

is there an jargon permitting an component confine page wholly until hits tip browser?

basically i am looking accomplish something identical impact uses have map follow down page hunt law page nonetheless i'd rather have immediate rather have locate adult few seconds after scroll. i also don't wish only set position "fixed" since i wish confine until confine off page, wholly following spin "fixed" (and likewise, user after scrolls behind up, i wish map spin "unstuck" confine behind down page). i suspect achieved concerned javascript (using "watch", etc) detects map circuitously tip page changes css values appropriately, nonetheless i anticipating multiple relative/absolute/fixed positioned divs obviated need javascript during all. and impetus i'd really drop-in library (or jquery plugin, etc) does only i am looking such thing exists. off-the-shelf scripts exist this, i'd adore hear first-hand trust doing perplexing same thing.

how should c bitflag enumerations translated c++?

c++ mostly superset c, nonetheless always. particular, while bulletin values both c c++ many modify int, shelter isn't true: wholly c ints modify behind bulletin values. thus, bitflags tangible around bulletin declarations don't work correctly. hence, ok c, nonetheless c++: typedef enum foo { foo_first = 1<<0, foo_second = 1<<1, } foo; int main(void) { foo x = foo_first | foo_second; // blunder c++ relapse 0; } how should problem burnished good correctly, ideally but harming debugger-friendly inlet controlling foo non-static form (it decomposes member bitflags watches etc.)? consider also there competence hundreds such fall enumerations, thousands use-points. ideally kind fit user overloading trick, nonetheless unequivocally ought efficient; concentration i have mind compute-bound repute being fast. clarification: i'm translating infinite (>300k) c way c++, i'm looking an fit interpretation both run-time developer-time. simply inserting ca...

why rollback slight accessible dbi handle?

for reason i am carrying troubles dbi handle. fundamentally happened i finished special bond duty perl way switched doing: do 'foo.pl' to use foo; and following i do $dbh = foo->connect; and reason i keep removing error: can't locate vigilant slight "rollback" around package "foo" during ../foo.pm line 171. so uncanny thing $dbh unequivocally foo, it's only tangible foo. anyway, i haven't any troubles adult until now. any ideas what's up? edit : @axeman: connect exist original. before only twine used this: do 'foo.pl'; $dbh = dbi->connect($dbconnectstring); and connect something this sub bond { $dbh = dbi->connect('blah'); relapse $dbh; }

difference between information opening covering denote mvc

i have implemented i guess graceful decent illustration mvc several web applications nonetheless given carrying assimilated impulse , i'm awaiting maybe initial definitions bit uncomplicated so i'd unequivocally construction differences between information opening covering denote domain covering web application. for context, i now information opening objects exercise gunk functions unparalleled record list vigilant represents good get() duty advantage an vigilant allows me iterate by objects met criteria get() function. these information opening objects referenced directly controller scripts enclose business logic. if matters, i'm operative php mysql nonetheless am prying suggestions competence coded languages. update: some-more specific example, i have list called user (the party here unparalleled list names) binds such information email address, active state, user name, password, association go to, etc. simple vigilant feeling code: class user implements dataaccessobject...

escaping ilike query

i need query hunt calm 'nome % teste \ / ' prefix. i'm doing query using: where "name" ilike 'nome a% teste \ /%' evade 'a' (using evade character). there quarrel review this, nonetheless query advantage nothing. stealing condense ( 'nome % teste \' ), works. nonetheless i don't since slash problem, given default evade backslash i've altered 'a' test. there something i'm missing? (i've consulted tfm)

how i <li> retard elements lay beside any other?

i have mockup plans something . radically there sections, columns fields, combined multiple <ul> <li> elements. finished personally after parsing. a dash html: <li class="layout"><span class="type">[column] </span> <ul class="layout-children"> <li class="field"><span class="type">[text] </span>a field</li> <li class="field"><span class="type">[text] </span>another field</li> <li class="field"><span class="type">[text] </span>yet another field</li> </ul> </li> <li class="layout"><span class="type">[column] </span> <ul class="layout-children"> <li class="field"><span class="type">[text] </span>more fields</li> <li class="fie...

how i morally store collect internationalized strings properties files?

i'm experimenting internationalization origination hello universe way uses properties files + resourcebundle opposite strings. specifically, i have record "messages_en_us.properties" stores "hello.world=hello world!", works glorious course. i following have record "messages_ja_jp.properties" i've attempted sorts things with, nonetheless always appears form stammering twine printed console swing. problem apparently reading calm java string, java twine japanese typed directly source imitation fine. things i've tried: the .properties record utf-8 encoding japanese twine as-is value. something i review indicates java expects properties record internal encoding system...? didn't work presumably way. the record default encoding (iso-8859-1) value stored transient unicode combined native2ascii way enclosed java. attempted source record several japanese encodings... shift-jis, euc-jp, iso-2022-jp. edit: i indeed figured out while i typing this, non...

is condense impression an seer pl/sql book an error?

i'm classification out array sql scripts association combined seer pl/sql. i came opposing an essential book strangely placed condense circuitously bottom. checked cvs way. pristine syntax blunder does have duty i'm wakeful of. rather obfuscated script: set serveroutput distance 2000; --pl/sql retard couple issn sequence bottom company's issn calm file declare cursor itemcursor is name issn is2 web.obfuscated1 where issn null union name eissn is2 web.obfuscated1 where eissn null; cursor itemcursor1(ais varchar2) is name obfuscated1_uid web.obfuscated1 where group_num zero issn ( name graphic issn web.obfuscated1 where issn = ais eissn = ais union name graphic eissn web.obfuscated1 where issn = ais eissn = ais ) union name obfuscated1_uid web.obfuscated1 where eissn ( name graphic issn web.obfuscated1 where issn = ais eissn = ais uni...

how i iterate by dom elements php?

i have an xml record hallowed dom document, i wish iterate by 'foo' tags, removing values each add-on next it. i know i values around $element = $dom->getelementsbytagname('foo')->item(0); foreach($element->childnodes $node){ $data[$node->nodename] = $node->nodevalue; } however, i'm perplexing do, an xml like, <stuff> <foo> <bar></bar> <value/> <pub></pub> </foo> <foo> <bar></bar> <pub></pub> </foo> <foo> <bar></bar> <pub></pub> </foo> </stuff> iterate over each foo tag, specific bar pub , values there. now, i iterate over foo i still opening specific child nodes name?

best proceed store/access trusty graph

i have around 3500 swamp control comforts i paint network establish upsurge paths (essentially trusty graph). i'm now controlling sqlserver cte recursively inspect nodes upstream components works enlarged upstream route doesn't flare alot. however, queries take exponentially longer others even many over physically down route (i.e. twin 3 segments "downstream") since total upstream complexity; cases i've let over 10 mins before murdering query. i'm controlling rudimentary two-column table, buttress being cunning itself being cunning upstream listed initial column. i attempted adding an index controlling tide cunning assistance speed things adult nonetheless finished difference. and, illusory connectors graph, any nodes have churned upstream connectors connected churned "downstream" nodes. it definitely illusory there cycles information nonetheless i have nonetheless figured out good proceed establish (other cte query reported border recursive count hi...

ruby meta programming question

i looking during flush logging library logging.logger slight have doubt relating square code: logger = ::logging::logger.new(name) logger.add_appenders appender logger.additive = false category << logger def close @appenders.each {|a| a.close} h = ::logging::repository.instance.instance_variable_get :@h h.delete(@name) category << self; undef :close; end end end i know category << logger opens adult eigen/meta/singleton category logger vigilant supplement an instance specifice tie method. however, i am accurately certain "class << self; undef :close; end" does purpose. anyone tell me means?

how anxiety lookup/meta data?

i've run emanate definitely few times never favourite fortitude chosen. let's contend have list states (just rudimentary example) database. your code-behind, wish means anxiety state id have list accessible around intellisense. for example: states.arizona.id //returns guid but problem i don't wish hard-code guids. past i've finished following: create category constants (hard-coding misfortune kind.. ugh!) create lookup classes have an id ability (among others) (still hard-coded need transform digest ever updated) put guids .config file, emanate an enumeration, within stationary constructor bucket guids .config hashtable bulletin vigilant key. following i do: statehash[statenum.arizona] . nice, since guid changes, transform required. however, doesn't assistance new record total an aged removed, since bulletin need updated. so i'm seeking someone improved solution? ideally, i'd wish means feeling adult around intellisense have transform formula there...

how finish list object's methods attributes?

dir(re.compile(pattern)) does relapse settlement lists's elements. namely returns: ['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner', 'search', 'split', 'sub', 'subn'] according manual, ostensible enclose the object's attributes' names, the names the class's attributes, and recursively attributes its class's bottom classes. it says also that the list indispensably complete. is there proceed complete list? i always feigned dir advantage finish list nonetheless apparently does not... also: there proceed list wholly attributes? wholly methods? edit: indeed bug python -> presumably bound 3.0 bend (and maybe also 2.6)

auto lovely ui business objects change

this some-more settlement question. i am building apparatus displays business objects several ways (ie tree nodes, list perspective items, combo boxes, calm fields, etc). anytime user changes any them, an eventuality carried signals that business vigilant altered collection belongs changed. given business object, collection competence go to, competence displayed some-more place, any those ui elements needs updated simulate change. there an glorious fortitude carrying any form ui component transform justly eventuality change? i have few ideas done, nonetheless i'd anyone problem happy solution. c# winform, nonetheless fortitude any language. my tide thoughts problem illusory solution: it gets some-more difficult wish purify adult eventuality bindings (ie businessobject.changed -= objectchanged) your business objects spin biased treenodecollection/listviewitemcollection/comboboxitemcollection clear() called collection. what "service", where any vigilant the ui component...

c# nullable twine error

private string? typeofcontract { { relapse (string?)viewstate["typeofcontract"]; } set { viewstate["typeofcontract"] = value; } } later formula i this: typeofcontract = request.querystring["type"]; i am removing following blunder during chapter typeofcontract line stating: the form 'string' contingency non-nullable value form method use parameter 't' general form method 'system.nullable<t>' any ideas? basically, i wish certain "type" exists querystring before behaving an action.

python - conch emanate practical ssh server

i'm looking during formulating server python i run, work an ssh server. following let opposite users login, act they'd logged normally, nonetheless wholly opening command. i wish i have component where i supplement users but carrying emanate component inclusive account, then, example, dedicate vcs branch, similar. while i work out conch "custom" shell... i can't figure out ssh tide works genuine (i'm preferably wanting border /bin/bzr bzr+ssh work. it needs python (which i authorisation) nonetheless don't know fasten app. this needs python work within app the designed for, means used those but opening supplement new users

convert xml information cunning flex type

a digest i'm operative lift xml web-server build information store it. information have certain core fields nonetheless needs extendable... instance i have after competence wish have adds additional fields. in flex app, i don't wish executive information store operative xml objects simply putting properties objects. i wish have cunning types, e.g chairman class, created/populated xml. how finished stretchable way? flex means automatically build chairman an xml charge names match, i need reworking functionality , , etc?

is bitmapsource wholly form used settlement source?

we bitmapsource vigilant calm settlement control, however i wholly have bitmap object, i directly, i modify bitmap bitmapsouce controlling following method: bitmap bitmap = imageobjtobeconvert; intptr hbitmap = bitmap.gethbitmap(); outcome = imaging.createbitmapsourcefromhbitmap (hbitmap, intptr.zero, int32rect.empty, bitmapsizeoptions.fromemptyoptions()); deleteobject(hbitmap); bitmap.dispose(); it take time. there any proceed bitmap directly? and i found bitmapsource seems can't expelled directly, there illustration slight redeem memory immediately, after bitmapsouce used again.

nsautoreleasepool nsoperation main?

the support +[nsthread detachnewthreadselector:totarget:withobject:] says: for non garbage-collected applications, slight aselector responsible sourroundings adult an autorelease pool newly removed thread freeing pool before exits. my doubt is, i need emanate possess nsautoreleasepool overrule -[nsoperation main] method, origination nsautoreleasepool burnished nsoperation ?

interesting compiler projects

i'm now slight selecting digest grad-level compiler impetus finished over unbroken 8 weeks. i'd something associated optimization given i haven't worked many area before, nonetheless anything domain satisfactory game. what many engaging compiler-related digest you've done? learn many from? edit: conclude your good suggestions. i apologize updating long. the digest i finished adult doing rudimentary autovectorization optimization llvm. llvm settlement types, nonetheless there didn't seem any proceed take advantage but support front-end. optimization converted normal scalar formula settlement code. since auto-vectorization sincerely challenging optimization implement, unparalleled the range many could. first, method arrangement instruction turn association code, looked one-block loops matched the criteria, following unrolled specific array times conveniently vectorizable. following implemented make-up algorithm laid out larsen amarasinghe. even simplified chronicle ...

what differences between builder, bureau method, summary bureau patterns?

a way receives list messages (base type). any summary list processed according it's form (descendant type). however, opposite messages need opposite inputs method processed correctly. what following technique called? (i haven't checked formula compiler) abstract category messageprocessor { open stationary messageprocessor getprocessor(message message, datadomain data) { (message.gettype() == typeof(foomessage)) { relapse new foomessageprocessor(message, data.name, data.classification); } else (message.gettype() == typeof(barmessage)) { relapse new barmessageprocessor(message, data.accountno, data.creditlimit); } else pitch new someexception("unrecognized type"); } open summary vacant process(); } and one? static category messageprocessorfactory { open stationary messageprocessor getprocessor(message message, datadomain data) { (message.get...

if page executes response.redirect() opposite web page, new page opening values asp.net controls uncanny page?

i have calm twine value i'd insist web page another but controlling query strings session/view states. i've perplexing asp http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx">hiddenfield control pass information web form different form. all hiddenfield control examples i've seen safety spin trips fan server same form. is there proceed form opening asp controls (and values) previously-rendered form? initial form simply likely memory second form executes it's onload method?

is there proceed anxiety an existent css impression another css impression controlling css javascript?

if i have impression defined .style1 { width: 140px; } can i anxiety second style? .style2 { ref: .style1; } or there proceed around javascript/jquery? --- edit to explain problem, i am perplexing ask whatever impression tangible #x #c .x .c but altering css css going have updates out control. i used extent nonetheless unequivocally impression something some-more challenging font, border impression elements being specified. specifying churned category names does work impression being receptive category i'll symbol existent responses answers, nonetheless i need take impression being receptive an id also ask category impression ... creates any sense.

bold calm add-on control

i'd confidant calm add-on page underneath certain conditions (not, necessarily, gotfocus). loyal wholly 'er easiest proceed vital drawitem eventuality add-on control? it seems there should an easier way. like ... tabcontrol.tabpages(index).font = new font(me.font, fontstyle.bold) that doesn't work, obviously.

asp.net mvc + orm

i am start adult digest controlling asp.net mvc have started formulating models. given i know some flush rails component identical rails active record possible. have anyone used castle projects active record asp.net mvc concentration (or any concentration relevant) have trust share? are mvc palace active record right proceed advise i linqtosql instead. please share any thoughts practice competence have gain. edit: clarify; i enlarged asp.net c# credentials nonetheless have looked small during rails adore easy emanate orm

how i unzip newest record office bat file?

i am operative build system. build component posts law zip record directory. unfortunately i have easy proceed know name zip file, since timestamped. unbroken operation, i contingency decompress zip record specific plcae following some-more record operations. i speculation i change build component i mention name outcome zip record management line, however, i nonetheless competence easiest only out newest record unzip (if before slight successful). how i emanate an unzip management wholly take outcome newest zip record directory, ignoring others? edit: i solid capabilities termite assign instead. however, still neat pretence have adult sleve... interjection answer!

what best proceed graphically paint page flow, convenient an movement oriented web application?

what best proceed graphically paint page flow, convenient an movement oriented web application? what denote paint page flows (page upsurge diagrams) encompassing pages (views), user actions those views (events) processes? these diagrams should act starting indicate bargain between business domain consultant (say someone naming an e-commerce web site), technical researcher (someone grateful conceptualizing web application) web developer (someone grateful implementing solution) i am looking program fortitude assistance me pull those diagrams, nor am i looking web upsurge horizon let me exercise page flows software. i am, however looking good amour sketch out page upsurge controlling pencil paper for example, good answer follows rectangle tag caps represents page arrow tag lowercase represents user action diamond tag caps represents process entry points always left (arrows page left) exit points always right (arrows out page right) if there an supposed standard, problem space indeed speci...

under an mvc framework, office structure approaching developers?

generally, mvc frameeworks have structure looks something like: /models /views /controllers /utils however, web concentration suite, i've solid clumping models, views, controllers together substantially wouldn't best clarity, unless i treated component concentration instead an concentration suite. however, things tie each "application" together, thought users user roles. so i have 3 illusory solutions: (1) i don't unequivocally wish do, keep each model, view, controller together, regardless app belongs to. treating unit unparalleled application, given tied together several common threads, including users. (2) organisation formula application. /app1 /models /views /controllers /utils /app2 /models /views /controllers /utils (3) organisation formula type, permitting concentration formula common among applications. /models /app1 /app2 /views /app1 /app2 /controllers /app1 /app2 /utils is there an choice i missed...

swapping palm holding rodent : have improved idea?

spending thousand hours front computer, ergonomics became fast sure issue. for guard keyboard, technical solutions exist. nonetheless mouse, i never used trackball putting small sham underneath wrist finished me feel uncomfortable. so i started barter palm binds mouse. it's great, rest while working. during commencement hard, nonetheless i don't unequivocally inadequacy unless i try whip an jennet during shake iii ;-) anyway, lot peaceful idea, have time, above all, means mental switch comes a hand. indeed, controlling palm side mind (logical <=> creative), origination unequivocally tough combine initial times. i am happy nonetheless know not. have improved thought ?

what formula party parameters/return values (collections)

i small contention associate use collections return/input values method. told me have use - many subsequent form relapse values. - slightest subsequent form quarrel parameters. so, means that, example, slight readonlycollection parameter, relapse list. moreover, conspicuous contingency list collection publics api, have use, instead collection, readonlycollection, ... so, box where slight public, the parameters the relapse values contingency collection, readonlycollection, ... is right ?

png origination php (is opposite gif jpg?)

i have settlement upload form should take settlement forms (png, jpeg, gif), resize following save path. for reason i can't png record forms work, works glorious jpeg/gif record copied looks it's something i'm formulating png. does png origination php need opposite parameters options? illustration formula lines settlement creation: $src = imagecreatefrompng($uploadedfile); imagecreatetruecolor($newwidth,$newheight) imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); imagepng($tmp,$destinationpath."/".$destinationfile,100); the same commands work jpg gif.

what's algorithm behind sleep()?

now there's something i always wondered: sleep() implemented ? if controlling an api os, following api finished ? does boil down controlling special machine-code cpu ? does cpu need special co-processor jigger but can't have sleep() ? the best famous incarnation sleep() c (to some-more accurate, libraries c compilers, such gnu's libc), nonetheless roughly each libel now the equivalent, nonetheless doing snooze languages (think bash) we're looking during question... edit: after reading answers, i slight placed wait queue. there, i speculation twin alternatives, either a timer set heart wakes slight during due time, or whenever heart certified slice, polls time check presumably it's arise process. the answers wholly plead choice 1. therefore, i ask: does timer act ? it's rudimentary miscarry heart arise process, heart ask timer "wake me adult 140 milliseconds i put slight controlling state" ?

hashing understanding data

i need dive names logins users uat database have. (because information word act) however, there catch. the testers still need means login controlling hashed login names so user login "jesse.j.james" following crush should something like ypois.x.qasdf i.e. approximately same length, dots same place so md5, sha1 etc suitable emanate unequivocally enlarged strings also supplement possess special characters such + = certified validation regex. so i'm looking suggestions grasp this i speculation i need rollmy possess hashing algorith anyone finished anything similar? i am controlling c# nonetheless i speculation vicious algorithm thanks alot added - thanks answers. i cruise i am grateful difficulty controlling "hash" indispensable done

is there an resolved ideal schema tagging

i have imitation website i wish support tags uncanny problem bucketing starting destroy (some cinema family vacations, propagandize friends). there an resolved tagging db schema? i still wish support carrying photos biased an album. right i have few tables: photos photoid photoalbumid caption date photo album albumid albumname albumdate

activex events between apartments

environment: vs2008 (atl), borland developer studio 2006. hello all. i'm carrying troubles activex control events. here brief outline app architecture: there an inproc com server contains sta activex control (aka control) mta com vigilant (aka object). here idl construction control vigilant interfaces: [ object, uuid(2338ccaf-bbaf-4e29-929b-a67285b1e772), dual, nonextensible, pointer_default(unique) ] interface iobject : idispatch{ [id(1)] hresult dowork(void); }; [ object, uuid(1a0a1da2-e33b-4df4-99a9-9eaef2281e7d), dual, nonextensible, pointer_default(unique) ] interface icontrol : idispatch{ }; [ uuid(bc27fabd-2794-4f9c-b3bd-c0c0628741fa), version(1.0), helpstring("avrep 1.0 form library") ] library activexlib { importlib("stdole2.tlb"); [ uuid(4b5575a7-e0ff-49b5-ae10-0d980cf49eb3) ] dispinterface _icontrolevents { properties: methods: [id(1)] hres...

mysql: conditionally selecting unbroken before rows

you during bottom there're links unbroken before articles ("unprepared divide_by_zero" "a totally opposite game")? i that, nonetheless selecting unbroken before non-private articles? works selecting unbroken article: select * articles where id > ? private null but i can't proceed name before article. what proper/efficient proceed this, preferably query?

updatepanelanimationextender - resize working

this page i'm having. nonetheless resize biased domain does seem working. i copied many formula . i placed alert() add-on (line 108) value 'b._originalheight' shows adult '44'. i have also attempted formula above-said educational (line 132) work either. (i'm certain where removing value from. nonetheless i need arrangement controls form. <%@ control language="c#" autoeventwireup="true" codebehind="addeditcontest.ascx.cs" inherits="tmpinternational.spawn2dotcomadmin.contest.usercontrols.addeditcontest" %> <%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="uc" %> <%@ register assembly="system.web.extensions, version=1.0.61025.0, culture=neutral, publickeytoken=31bf3856ad364e35" namespace="system.web.ui" tagprefix="asp" %> <%@ register tagprefix="ew" assembly="eworld.ui, version=1.9.0.0, cult...

how wait another process's station .net?

i'm operative an formation contrast digest .net. contrast horizon executable starts use following needs wait use finish an operation. what best proceed exe wait use finish the assign (the use itself exit on assign completion)? both processes have opening same database, initial guess rudimentary list annals service's status. once it's signaled it's done, exe stop sharp finish the task. approaches? let me relate service, once finished the task, sojourn running/in-memory state, sharp exit won't work. ;-) also, definitely formation contrast purposes, never production, "simple" user word.

how control printer tray preference printer windows

we need means change default comparison imitation tray given printer. does anyone have vc++/win32 formula doing this? in box matters, i trust have change default sourroundings printer. the imitation jobs executed an concentration ours, can't kinds changes context imitation operation imagining inside the application. unless there proceed cgange default imitation settings opposite application, i cruise stranded changing user's defaults printer, initiating the imitation job, following sourroundings defaults behind uncanny values. we'd unequivocally move have defaults change tide user only, need any special uac elevation, etc... i think something identical shown , secure sourroundings fields devmode structure (either dmdefaultsource dmformname both). any takers? does anyone have any gotchas they'd share? edit: here couple devmode support edit: i should also indicate out looking whole fortitude - something specific sole printer (we muster many, environments)

fast calm hunt over logs

here's problem i'm having, i've got set logs grow sincerely quickly. they're separate sole files each day, files simply grow adult gig size. assistance keep distance down, entries comparison 30 days privileged out. the problem i wish hunt files certain string. right now, boyer-moore hunt unfeasibly slow. i know applications dtsearch yield unequivocally quick hunt controlling indexing, nonetheless i'm unequivocally certain exercise but holding adult twice space record already takes up. are there any resources i check out help? i'm unequivocally looking customary algorithm that'll explain i should build an index search. edit: grep won't work hunt needs integrated cross-platform application. there's proceed i'll means representation including any outmost way it. the proceed works there's web front finish record browser. talks tradition c++ web server backend. server needs hunt logs reasonable volume time. now poison by several gigs logs takes ag...

printing pdf printer programmatically

i am perplexing imitation an existent record pdf programmatically visible simple 2008. our tide applicable resources are: visual studio 2008 professional adobe acrobat conductor 8.0 i guess removing sdk itextsharp, nonetheless seem profusion i am perplexing generally given have full chronicle adobe. is there comparatively rudimentary bit formula imitation pdf printer (and impetus distribute imitation specific location) need a another library imitation pdf? i wish imitation previosly combined request pdf file. box .snp record i wish .pdf file, nonetheless i cruise explanation same any record type. i only attempted above bombard execute, perform proceed i wish to. prompts me where i wish imitation still does imitation where i wish (multiple locations), essential emanate lot same named pdf files (with opposite information within pdf placed analogous fan folders) the tide slight is: go \\report server\client1 create pdf files snp papers folder palm copy pdf \\website reports\client1 then r...

what's best proceed exercise user controls asp.net mvc?

like others site i am deliberation pierce asp.net mvc destiny projects. now sites controlling normal asp.net 2.0 web forms, works ok us, choice only hang i know pierce asp.net 3.5 integrated ajax stuff. i'm wondering user controls work asp.net mvc. have tons .ascx controls, few multiple controls. i work web designers unequivocally easy ascx controls effectively, even but any programming knowledge, that's clear plus. nonetheless following impetus downsides page life cycle, maddening, fact ascx controls tough share between opposite projects. multiple controls share-able, nonetheless fundamentally black box designer. what's denote asp.net mvc? there proceed emanate controls solves problems we've dealt controlling ascx multiple controls? permitting easy opening web designers but carrying worry formula being damaged an vicious consideration.