Posts

Showing posts from February, 2015

new web app digest does praise <asp: add-on space

visual studio 2008 w/sp1 to imitate problem i simply emanate new .net 2.0 web concentration supplement page following markup: <%@ page language="c#" autoeventwireup="true" codebehind="default.aspx.cs" inherits="webapplication5._default" %> <!doctype html open "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:button id="button1" runat="server" /> </div> </form> </body> </html> what happens line drawn underneath :button matter "validation (): component 'button' supported." i've attempted repair .net framework; however, impact. started duty twi...

cannot textboxes boldly total usercontrol say state

i have attempted seems all - i've finished similiar things times before, nonetheless i'm apparently blank something. i have usercontrol (uca) - uca linkbutton loads opposite usercontrol (ucb) programatically quarrel uca. ucb textboxes, etc. why isn't control surpassing it's state? ie: textboxes loosing thier value postback - control tree shows name control form values arrangement value (in trace.axd) here formula uca (basically) public int slidecount { { relapse convert.toint32(viewstate["slidecount"]); } set { viewstate["slidecount"] = value; } } protected vacant linkbutton1_click(object sender, eventargs e) { slidecount += 1; loadslidecontrols(); } protected overrule vacant oninit(eventargs e) { base.oninit(e); loadslidecontrols(); } private vacant loadslidecontrols() { this.pnlannouncementholder.controls.clear(); (int i = 0; i < slidecount; i++) { this.pnlannouncementholder.controls.add( ...

how array lines altered between cvs versions?

i've spent many origination fundamentally housekeeping changes codebase the projects (replacing system.out.println() calls log4j). i'm kind extraordinary lines formula i've updated set changes. is there anyway cvs diff another management an accurate count lines have changed? i've tried cvs diff -b -b -r to changes operative office (and recursively subdirectories), nonetheless any record altered also prints out file/version information, creates only counting lines cost useless. any ideas?

javascript: loop by elements onblur handler certain elements

i have box where i have garland calm boxes radio buttons shade built boldly several divs. there onblur routines calm boxes countenance entry, nonetheless depending radio symbol selection, calm box opening unfair current originally. i can't onblur radio buttons since radio symbol calm boxes finished unfair emanate an enormous loop given i'm putting concentration unfair element. given any calm box the possess special parameters onblur calls, i figure best proceed onblur eventuality textboxes form gets submitted certain opening still current radio symbol settlement have selected. i also need stop submitting onblur events advantage fake repremand textbox wrong. i've written... (var intelement = 0; intelement < document.forms[0].elements.length; intelement = intelement + 1) { (document.forms[0].elements[intelement].name.substr(3) == "factoramount") // initial 3 characters name unparalleled identifier any field { (document.for...

how bucket .net public tact operations subsequently empty it?

i'm minute apparatus news information .net applications deployed opposing environments regions within client's systems. i'd review values public attributes assemblies. this achieved controlling assembly.reflectiononlyload , however even proceed keeps public loaded. emanate here i can't bucket twin assemblies have same name opposite paths, naturally i can't review same concentration deployed opposite systems. at indicate i'm presumption fortitude secure controlling surrogate appdomain s. can someone fact bucket an public another appdomain , review attributes following empty appdomain ? this needs work assemblies record component good those during url addresses.

how insert/move/delete nodes xml groovy?

for example, i have following xml document: def car_records = ''' <records> <car name='hsv maloo' make='holden' year='2006'/> <car name='p50' make='peel' year='1962'/> <car name='royale' make='bugatti' year='1931'/> </records> ''' and i wish pierce car "royale" adult initial one, insert new car only after car"hsv maloo", outcome be: ''' <records> <car name='royale' make='bugatti' year='1931'/> <car name='hsv maloo' make='holden' year='2006'/> <car name='my new car' make='peel' year='1962'/> <car name='p50' make='peel' year='1962'/> </records> ''' how groovy? comments welcome.

what range confine nested sell sql server?

consider following sql: begin tran set transaction confine turn review committed insert bands ( name ) select 'depeche mode' union select 'arcade fire' -- i've indented middle transaction clearer. start tran set transaction confine turn review uncommitted name * bands commit -- confine turn right here? update bands set name = 'modest mouse' where name = 'oddest house' commit in sum, start transaction set the confine turn read committed . following futile sql start another, nested transaction. transaction change confine turn read uncommitted . following dedicate transaction relapse other. now, speculation after middle commit, confine turn advantage read committed . correct?

rails ignoring news redirect_to

i've got unequivocally rudimentary rails doubt here nonetheless i can't seem answer anywhere. i speculation problems bend me following educational rails 1.2 rails 2.1. anyway.. i'm minute blog component i'm implementing comments bit. i have comments displaying glorious once i've combined controlling script/console, nonetheless removing critique form itself operative tough bit. in posts_controller.rb i have def comment post.find(params[:id]).comments.create(params[:comment]) flash[:notice] = "added comment" #render :action => show redirect_to :action => show finish and show.html.erb (the view) i have <%= form_tag :action => "comment", :id => @post %> <%= text_area "comment", "body" %><br> <%= submit_tag "post comment" %> when i quarrel form tries urb /posts/comment/1 apparently incorrect, complains can't template. apparently i don't wish template the...

embedding assemblies inside another assembly

if emanate category library uses things assemblies, illusory hide those assemblies inside category library kind resource? i.e. instead carrying myassembly.dll , someassembly1.dll someassembly2.dll sitting record system, those twin files bundled myassembly.dll workable the code. i'm also small confused since .net assemblies .dll files. didn't format exist before .net? .net assemblies dlls, nonetheless dlls .net assemblies? since same record format and/or record extension?

find shortest route graph visits certain nodes

i have undirected graph 100 nodes 200 edges. node labelled 'start', 'end', there's dozen labelled 'mustpass'. i need shortest route by graph starts during 'start', ends during 'end', and passes by 'mustpass' nodes (in any order). ( / graph doubt - represents corn halt lancaster, pa)

linq entities wcf

i have entities seperate digest edmx record i arrangement fan concentration controlling wcf service. that means i don't have give fan app proceed couple digest contains edmx file. bad since contines vigilant query database with. but wholly entities wcf use uses accessed fan app. instance since i have following formula service: public myclass getmyclass() { relapse new myclass(); } .. i opening myclass fan app something like: myserviceinstance.myclass cls = new myserviceinstance.myclass() what i have an entity called myclass2 edmx record i wish fan app! i instansiate but giving fan proceed couple edmx record digest origination usless slight use covering advantage myclass2 what doing? thanks lot

what arrange arithmetic your .net application?

what arrange arithmetic your .net application, proud everything that's ? i cruise system.math woefully inadequate. example, several executive frameworks, i count 3 opposite implementations matrices. same goes vectors. doing challenging number; several opposite implementations erratic receptive numbers, on. so, feigned system.mathematics namespace?

how outline uielement partial-trust?

i asked previously, nonetheless i mention needs work partial-trust mode. unfortunately both repremand answers (using uielement.bitmapeffect uielement.effect ) certified partial-trust, since requires uipermissionwindow.allwindows . does anyone know proceed something identical partial-trust app?

new facebook app - fbml iframe?

we're starting new facebook app (incidentally rails), faced preference fbml iframes. seems past settle generally fbml improved proceed go, finished things some-more inherently facebook looking, however seems things iframe side starting improve, sure engineers observant so i'm wondering have found work best. advantages drawbacks have seen presumably iframe approach, fbml approach. or, controlling brew both. i there's proceed overrule sourroundings specific places. update: new readers, facebook . all new apps should iframes .

should i subclass list<t> have property?

i have faced problem definitely mostly during final integrate months, during i've building system. unfolding this: i have kind vigilant radically list objects, nonetheless properties specific the nature. example: class tests : contains test objects has properties: defaulttimeouts defaultnumberoftries should i have category subclass list<test> should i have inheriting object , simply carrying list ability beside fields? i know competence bit inequitable personal ambience competence play purpose here, nonetheless i'd wholeheartedly know your opinion this.

online private source control system

i am looking private online source control system. fundamentally i wish private chronicle . private clarity wholly me chairman i tempt perspective source code. source formula source control should unprotected hunt engines but repremand regard rights. i move reason source formula servers, machine. i don't wish hoop database maintain backup things that. sell i don't mind compensate monthly opening cost this. any ideas?

running churned applications stm32 flash

i have twin applications stm32 flash, fundamentally feet 'main' application. i have figured out bucket any opposite areas flash, after holding memory dump all looks right place. so i reset loads boot, feet does during impulse burst application. debugging boot, appears work correctly. however problems arrives after i've finished burst application, only executes instruction (assembly) following jumps behind boot. should stay concentration indefinitely. my doubt then, where should i 'jump' app? it seems there few appetite spots, such miscarry vectors, reset handler, sure duty app. indeed i've attempted those success. hopefully creates sense, i'll transform doubt not. thanks your help! richard updates: i play around debugger manually altered way opposing sure application, good worked charm, creates me cruise there something wrong jump, since doesn't way opposing keep going after jump? actually seems psr, 't' gets reset jump, i set again after burst c...

synchronizing non-static between fan server

say i've got client-side opposing variable. i send ask server, i send variable's value, following increment (for unbroken ask server). server keeps lane opposing independantly, checks certain count sent fan 1 some-more it's possess (server-side) duplicate count. glorious dandy, nonetheless cruise following situation: the fan sends, say, 23 server. the server receives 23, validates it, increments the possess opposing 23. the server advantage all-okay formula client -but- along proceed server client, relapse formula gets corrupted. fan so thinks server transform the counter, leaves client-side opposing during 23. indicate onwards, fan server out sync. does anybody know any strong schemes work face such illusory corruption/errors? thanks, cameron

using mac querulous height development?

who uses macs cross-platform development? by querulous height i radically meant accumulate aim windows unix (not indispensably both during same time). i know also lot minute unstable code, nonetheless i am some-more prying people's trust arise software. i know there operation ides select from, i substantially obscure (i toolchain) however seems definitely popular. used described above? during splash i always virtualise parallels visible studio (or twin feet matter). carrying conspicuous i am open any suggested compilers (with preferably an ide uses gcc.) also operation macs available, recommend? i move laptop (as i already have desktop) nonetheless am capricious reasonable specifications. if now controlling mac development, i adore hear arise your mac don't it. i essentially building c/c++/java. i am also looking examination , i'm prying contention any (potential) harmony issues. if have any tips i'd adore hear have say.

how set adult middle browser aptana linux

i downloaded aptana_studio_setup_linux.zip package, unpacked run ./aptanastudio. starts fine, nonetheless reports problem: the embedded browser widget editor can't created. presumably accessible your handling component system needs configured method support embedded browser. after that, opens "welcome page" outmost browser (mozilla), nonetheless i click couple exercise php support does open finish target. wonder, since couple format: com.aptana....etc. i.e. combined reverse. i assume such links wholly work middle browser. if i feeling details, i blunder messages: no some-more handles [unknown mozilla route (mozilla_five_home set)] org.eclipse.swt.swterror: some-more handles [unknown mozilla route (mozilla_five_home set)] at org.eclipse.swt.swt.error(swt.java:3400) at org.eclipse.swt.browser.browser.<init>(browser.java:138) at org.eclipse.ui.internal.browser.browserviewer.<init>(browserviewer.java:224) at org.eclipse.ui.internal.browser.webbrowsereditor.createp...

is origination an lifeless twine consistent value it?

i have co-worker swears by //in essay "constants" class public stationary final twine empty_string = ""; in constants category accessible via project. way, something like if (constants.empty_string.equals(otherstring)) { ... } instead if ("".equals(otherstring)) { ... } i contend it's not value it--it doesn't save any space heap/stack/string pool, ugly abuse constants class. who crazy here?

enumerate windows alt-tab does

i'm formulating an alt-tab deputy perspective nonetheless i have problems register active programs. i'm controlling enumwindows list windows, nonetheless list huge. contains 400 equipment i wholly have 10 windows open. seems hwnd each unparalleled control lot stuff. so i have filter list somehow, nonetheless i can't control accurately alt-tab does. this formula i filter list right now. works graceful well, nonetheless i neglected windows removed tool-windows visible studio i also skip windows itunes warcraft3. private bool shouldwindowbedisplayed(intptr window) { uint windowstyles = win32.getwindowlong(window, gwl.gwl_style); (((uint)windowstyles.ws_visible & windowstyles) != (uint)windowstyles.ws_visible || ((uint)windowexstyles.ws_ex_appwindow & windowstyles) != (uint)windowexstyles.ws_ex_appwindow) { relapse true; } relapse false; }

how obscure praise java ee jar files servlets compile?

i am sourroundings adult java ee chronicle obscure accumulate servlets. i have problem where obscure says "httpservlet" can't resolved since can't java ee jar files. i am controlling windows xp. i already have tomcat 6.0 adult running. i cruise easiest fortitude couple servlet-api.jar record tomcat installation. i total windows classpath sourroundings variable. looks this: .;c:\program files\java\jre1.6.0_04\lib\ext\qtjava.zip;c:\program files\apache program foundation\tomcat 6.0\lib\servlet-api.jar that didn't work. am i doing something wrong? what best solution?

real universe cost run winform apps mono?

my association an existent dynamic winform concentration controlling winxp. concentration does alot sound guess controlling directsound. my association weigh mono, an choice per workstation cost vista/win server 2008. i've listened opposite estimates, trimming 'it work simply mono' 'it take months recoding certain cases winform app run mono linux'. does anyone have good genuine universe trust this? a good couple reference? i improved thought before i dedicate testing. thanks!

redirecting consoleoutput containing pseudo-loc (unicode) strings c#

i'm controlling console app (myapp.exe) outputs pseudo localized (unicode) twine customary output. if i run unchanging management prompt(cmd.exe), unicode information gets lost. if i run unicode management prompt(cmd.exe /u) set properties console "lucida console" following unicode twine maintained. i'd run app c# route unicode twine internal variable. i'm controlling slight vigilant redirectstandardoutput = true, nonetheless unicode twine always lost. how i mention insist unicode info? private stationary int rundism(string args, out twine consoleoutput) { slight process = new process(); process.startinfo.filename = "myapp.exe"; process.startinfo.arguments = args; try { process.startinfo.createnowindow = true; process.startinfo.useshellexecute = false; process.startinfo.redirectstandardoutput = true; process.startinf...

controlling clustered pushpin's veshape ve sdk 6.2

preface i'm controlling newly expelled microsoft practical earth sdk v6.2 built-in support pushpin clustering. i comprehend there tradition ways doing clustering where doubt easy answer, nonetheless i'd precedence built-in support many possible, doubt personally associated controlling clustering underline ve 6.2 sdk. the problem after enabling built-in clustering (via veshapelayer.setclusteringconfiguration), clusters combined expected, however, have default information says something "x equipment located here - wizz details". app i'm operative on, i need arrangement some-more information - i presumably need grant user click pushpin ve automatically wizz points graphic arrangement names points infobox trustworthy cluster pushpin. locate cluster figure ve creates me does seem editable until after clustering explanation run...at point, i don't know uncanny pushpins go sole cluster. there proceed occur but resorting formulating tradition clustering implementa...

what core elements consolidate support documentation?

i have combined an application needs 'hand-over' support organisation unbroken month. the concentration fairly small (2 months development), consists twin fan side applications database, it's combined c# windows platform. i have extended idea consolidate support document, nonetheless i haven't indispensable unequivocally support papers distant career i wish plain list equipment include. i speculation goal lives everyone support organisation easier highlight giveaway possible. so i speculation questions are: what should support request definitely contain what additional things have put support papers additional useful. what activities finished before hand-over the lives easier?

mysql left join name selecting left side records?

i'm removing rare law mysql select query involving left join , i can't know presumably bargain left join wrong presumably i'm observant honestly rare behavior. i have twin tables many-to-one relationship: each record table 1 there 0 some-more annals table 2 . i wish name annals list 1 buttress depends array associated annals list 2. i know it, left join should always relapse annals left side statement. here's exam database exhibits problem: create database test; use test; create list dates ( dateid int unsigned zero auto_increment, date date null, unparalleled pivotal (dateid) ) type=myisam; create list slots ( slotid int unsigned zero auto_increment, dateid int unsigned null, unparalleled pivotal (slotid) ) type=myisam; insert dates (date) values ('2008-10-12'),('2008-10-13'),('2008-10-14'); insert slots (dateid) values (3); the dates list 3 records, slots 1 - record points third record dates. if i following query.. select...

implementing kvo/bindings-compliant bridge-pattern cocoa

i'm perplexing exercise rudimentary vigilant overpass cocoa where overpass vigilant acts kvo/bindings-compliant dump erratic nsobject instance. here problem (more sum formula below): a overpass vigilant acts dump person-object, an nsstring* ability called name an address* ability address . contracting keypath "name" "address" overpass works nicely. problem starts contracting vigilant keypath "address.street" overpass new address-object set person's address property. law kvo-related exceptions feeling this: cannot mislay an witness <nskeyvalueobservance 0x126b00> pivotal route "street" <address 0x12f1d0> since purebred an observer this happens even nonetheless overpass notices change "address"-property emits willchangevalueforkeypath/didchangevalueforkeypath tuple. the formula next produces the problem. it's self-contained objective-c formula saved record "bridgedemo.m" collected run with gcc -o exa...

performance controlling stationary methods vs instantiating category containing methods

i'm operative digest c#. before programmer didn't know vigilant oriented programming, many formula vast files (we're articulate around 4-5000 lines) widespread over tens infrequently hundreds methods, nonetheless wholly class. refactoring such digest vast undertaking, i've semi-learned live now. whenever slight used formula files, category instantiated following slight called vigilant instance. i'm wondering presumably there any conspicuous opening penalties doing way? should i methods stationary "for now" and, many importantly, concentration advantage any way?

what best flexible methodology category project?

the digest feeble defined: educational program cs 111 mechanism programming i students focusing functions. have 6 tyro developers several backgrounds operative flex. digest generation 7 weeks. have unequivocally unparalleled face (30 min per week) unequivocally unparalleled work (<8 hours per developer per week). have unparalleled opening business (professor the course, highbrow cs 111, students cs 111). our toolset includes flex builder, subversion, trac. what methodology best digest why? alternately, comforts should collected several methodologies improved fit situation?

visual studio debugger tips & tricks .net

i've operative years vs's debugger, nonetheless each following i opposing underline i have never beheld before, cruise "damn! i have missed that? it's so useful!" [disclaimer: tips work vs 2005 c# project, guarantees comparison incarnations vs languages] keep lane vigilant instances working churned instances given class? tell apart? in pre-garbage collection programming days, easy keep lane references - only feeling during memory address. .net, can't - objects changed around. fortunately, watches perspective lets right-click watch name 'make vigilant id'. this appends {1#}, {2#} etc. after instance's value, effectively giving instance unparalleled label. looks this: the tag persisted lifetime object. meaningful values watched variables by default, watched variable's value it's type. wish the fields, have enhance it, take enlarged (or even timeout!) there fields something complicated. however, predefined forms arrangement s...

interface doesn't accept hereditary member (oo question)

i feel fool, nonetheless here goes: public interface ihaserrorcontroller{ errorcontroller errorcontroller { get; set; } } public category dserrorcontroller: errorcontroller{yadi yadi ya} public category dswebsitecontroller : controller, ihaserrorcontroller{ open dserrorcontroller errorcontroller { get; set; } } this gives me an blunder observant dswebsitecontroller.errorcontroller can't exercise ihaserrorcontroller notwithstanding dserrorcontroller being inheritted errorcontroller. also, suggestions improved controlling form errorcontroller domain errorcontroller don't feeling same acquire (naming hard).

html.actionlink method

let's contend i have class public category itemcontroller:controller { open actionresult login(int id) { relapse view("hi", id); } } on page located during vigilant folder, where itemcontroller resides, i wish emanate couple login method. html.actionlink slight i should parameters should i pass? specifically, i am looking deputy slight html.actionlink(article.title, new { controller = "articles", movement = "details", id = article.articleid }) that late new asp.net mvc incarnation.

converting request workable html php

i have set papers i wish tell controlling php apparatus i've written. i duplicate brew papers calm box following save mysql controlling php program. problem i have arises non-standard characters papers have, curly quotes ellipses ("..."). i during impulse manually hunt reinstate kinds things (and also unfamiliar black such e-acute) presumably plain calm html entities (&eacute ; etc) there duty php i take cost request modify all should entities entities, black don't arrangement morally firefox black display. thanks!

convert audio tide wav byte array java but temp file

given an inputstream called in contains audio information dense format (such mp3 ogg), i wish emanate byte array containing wav reworking quarrel data. unfortunately, try this, javasound hands following error: java.io.ioexception: tide length specified i managed work minute wav surrogate file, following reading behind in, shown below: audioinputstream source = audiosystem.getaudioinputstream(new bufferedinputstream(in, 1024)); audioinputstream pcm = audiosystem.getaudioinputstream(audioformat.encoding.pcm_signed, source); audioinputstream ulaw = audiosystem.getaudioinputstream(audioformat.encoding.ulaw, pcm); file tempfile = file.createtempfile("wav", "tmp"); audiosystem.write(ulaw, audiofileformat.type.wave, tempfile); // filetobytearray() slight reads file // byte array; wanting brevity byte[] bytes = filetobytearray(tempfile); tempfile.delete(); return bytes; this apparently reduction desirable. there improved way?

how i set source control block default visible studio 2008?

we recently hallowed organisation substructure server 2008 controlling both visible studio 2008 formula visible foxpro 9 formula still migrating .net. i exercise tfs msscci provider connectivity vfp9 ide. works fine, nonetheless visible studio seems confused source control block keeps reverting tfs msscci provider instead "visual studio organisation substructure server" plugin hallowed organisation explorer. block changes, i errors perplexing get/check formula tfs. i visible studio keep organisation path-finder block default?

reduce nictitate gdi+ c++

i'm controlling gdi+ c++/mfc concentration i only can't seem prevaricate flickering whenever window resized. i have already attempted steps: returned loyal onerasebkgnd() ; returned zero onctlcolor() ; used double buffering according code: void vwview::ondraw(cdc* pdc) { crect rcclient; getclientrect(rcclient); bitmap bmp(rcclient.width(), rcclient.height()); graphics graphics(&bmp); graphics.drawimage(m_image, rcclient.left, rcclient.top); graphics grph(pdc->m_hdc); grph.drawimage(&bmp, 0, 0); } am i doing something wrong? there another proceed grasp this?

making list quarrel clickable

i awe best proceed an whole tr clickable be? the many common (and only?) fortitude seems controlling javascript, controlling onclick="javascript:document.location.href('bla.htm');" (not forget: sourroundings repremand cursor onmouseover/onmouseout). while works, empathize aim url manifest station bar browser, graphic normal links. so i only awe there any room optimization? illusory arrangement url navigated station bar browser? there even non-javascript proceed tr clickable?

does android webview need permissions opening outmost urls?

i perplexing following example, nonetheless outmost urls: the instance shows bucket an html record resources folder ( file:// url ) arrangement webview. but i try outmost urls (like ), i am always removing "website available" error. android's built-in browser means opening outmost urls. i think something permissions, nonetheless wasn't means endorse it.

how i covariant relapse forms intelligent pointers?

i have formula this: class retinterface {...} class ret1: open retinterface {...} class ainterface { public: practical boost::shared_ptr<retinterface> get_r() const = 0; ... }; class a1: open ainterface { public: boost::shared_ptr<ret1> get_r() const {...} ... }; this formula does compile. in visible studio raises c2555: vital practical duty relapse form differs not covariant if i boost::shared_ptr nonetheless relapse tender pointers, formula compiles (i know due c++). i problem since boost::shared_ptr ret1 subsequent boost::shared_ptr retinterface . nonetheless i wish relapse boost::shared_ptr ret1 classes, else i contingency ban returned value after return. am i doing something wrong? if not, since libel - should extensible hoop reworking between intelligent pointers scenario? there fascinating workaround?

how navigate between fields enter key

my association infinite concentration combined vb6, chronological reasons, concentration navigated enter pivotal instead add-on key. i don't know vb6, nonetheless i know now set concentration any control large name matter form's keyup eventuality it's an enterkey. starting modify .net, have keep things unchanging users won't have add-on forms enter others. i wish foregoer forms automatically enter domain field instead tabbing. colleague told me proceed it's finished vb6 slight buttons click eventuality nonetheless keyup event. i need continue doing i won't have leftover keyup events pass behind vb6 after form finished. method events buttons is button_previewkeydown button_click (apparently replacing keypress event) form_keyup button_keyup i combined forms follows: on foregoer form's keyup event, checks it's an enter key. an enter key, active control button, moves unbroken domain add-on order. differently ignores pivotal lets control hoop it. but...

secure opening files office identified an sourroundings variable?

can anyone indicate formula deals confidence files opening around route specified (in part) an sourroundings variable, personally unix the variants, nonetheless windows solutions also interest? this large enlarged doubt - i'm certain good fits paradigm. consider scenario: background: software package pqr hallowed plcae comparison users. the sourroundings non-static $pqrhome used brand exercise directory. by default, programs files underneath $pqrhome go special group, pqrgrp. similarly, programs files underneath $pqrhome presumably go special user, pqrusr, user bottom (and those suid bottom programs). a few programs suid pqrusr; few some-more programs sgid pqrgrp. most directories owned pqrusr go pqrgrp; go groups, members those groups acquire additional privileges software. many absolved executables contingency run members pqrgrp; programs have countenance user accessible run penetrating manners directly pleasantness question. after startup, absolved programs have keep mountainous...

small problem description confine bars mfc

in an mfc concentration there little rectilinear shred where confine bars accommodate (bottom right window). seems shred wholly invalidates support resized. occasions (for example, another window dragged over it), shred does repaint. i've means imitate vs 6 2008 newly combined projects. i've also seen blurb apps same problem. reconstruct it: create new sdi digest cscrollview subsequent view. resize window both confine bars shown. drag another window over rectangle repaint problem. any ideas absolved this?

in hunt javascript month picker

i'm hunt javascript month preference tool. i'm already controlling jquery website, jquery plugin, fit nicely. i'm open options, well. basically, i'm after simplified chronicle . i don't caring month, only month year. controlling date picker control feels profusion kludge. i know i only camber name boxes, nonetheless feels cluttered, following i also need acknowledgment button. i'm envisioning grid presumably twin rows 6 columns, 3 rows 4 columns, month selection, tide destiny years opposing top. (maybe ability list few years? i can't anyone ever wanting some-more year twin ahead, i list tide unbroken twin years, swell.) it's unequivocally only dumbed down chronicle datepicker. does something exist?

downloading physique sites controlling user input

i wish boots means download physique website user enters an edit_line. i work? anyone assistance explain since next formula does work? only pops adult new window, does download site calm entered.... here's formula so far: shoes.app do smoke-stack (:left => 175, :top => 200) do para "enter url:" upsurge do @url = edit_line symbol "ok" do window do smoke-stack do due "searching site", :size => 16 @status = para "one moment..." # hunt site query imitation body download @url.text |site| @status.text = "body: " + site.response.body.inspect end end end end end end end

how i out exceptions competence thrown .net function?

i competence blank something apparent nonetheless there anxiety somewhere exceptions thrown functions .net since difference competence thrown? as an example, i recently perplexing out linq visible c# 2008 i loading an xml record an xdocument. wholly by contrast i realised try bucket record doesn't exist, pitch filenotfound exception, nonetheless try bucket office instead record you'll an unauthorizedaccessexception. also looking by system.io namespace i things fileload difference pathtoolongexception, i speculation competence thrown nonetheless there others out there competence thrown business i haven't guess yet. the wholly fortitude i've got right only locate ones i know following locate difference type, nonetheless i rather means know accurately forms exceptions i'm many approaching run why. i have guess msdn library have form information, nonetheless i can't anywhere. am i only blind? information anywhere else? edit: some-more specifics, right i'm lookin...

apache htaccess win2k being processed

i am perplexing rewrite urls controlling mod_rewrite. enabled httpd.conf url rewriting works lines httpd.conf file. however, i manners .htaccess file. it doesn't seem .htaccess being processed during apache win2k. i have rewritelogging incited proceed up, nonetheless record record isn't being created. final line httpd.conf accessfilename .htaccess .htaccess contents rewriteengine on rewritelog "c:/rewrite.log" rewriteloglevel 15 rewriterule /alice.html$ /bob.html thanks edit : apache chronicle 2.2 windows 2k

which gantt chart/project supervision apparatus advise linux?

i need digest supervision apparatus works linux, gantt charts. it doesn't have free, only expensive. i don't caring stores information i give it, enlarged i opening it. i contingency means print gantt charts. must work linux. with those requirements, recommend? theobserver asked windows specific chronicle doubt . thanks assistance everyone.

what convincing arguments stand visible studio 6?

i have fan still controlling visible studio 6 building prolongation systems. multi-threaded systems stl run mutli-processor machines. occasionally change spec boost bucket server machines 'weird' challenging imitate errors... i know there several issues visible studio 6 growth i'd remonstrate pierce visible stuio 2005 2008 (they have visible studio 2005 projects). the purpose doubt put together list famous issues reasons stand along links where issues discussed reported. also useful have genuine life 'horror stories' issues have bitten you.

is there proceed impression controlling 1 2 bytes delphi 2009?

delphi 2009 altered the twine form 2 bytes paint character, allows support unicode bake sets. sizeof(string) length(string) * sizeof(char) . sizeof(char) now being 2. what i am prying presumably anyone knows proceed impression character basement illusory out fit unparalleled byte, eg out bake ascii unicode. what i'm essentially prying knowing, before twine goes database (oracle, documentum) bytes twine up. we need means make boundary before palm ideally (as have infinite hallowed base) but carrying change database. twine domain allows 12 bytes, delphi 2009 twine length 7 always arrangement controlling 14 bytes even nonetheless once got db wholly 7 ascii 14 double byte, somewhere between mixture.

how pull pristine settlement controlling system.drawing?

i'm perplexing relapse pristine gif an .aspx page arrangement within web page. i am perplexing settlement have transparency, nonetheless i only keep removing black being where settlement should transparent. does anyone know i'm doing wrong? protected servant page_load(byval sender object, byval e system.eventargs) _ handles me.load '' change response headers cost gif image. response.clear() response.contenttype = "image/gif" low extent = 110 low tallness = width '' emanate new 32-bit bitmap image low b = new bitmap(width, height) '' emanate grahpics vigilant drawing low g = graphics.fromimage(b) low rect = new rectangle(0, 0, extent - 1, tallness - 1) '' fill transparent low tbrush = new system.drawing.solidbrush(color.transparent) g.fillrectangle(tbrush, rect) '' pull spin border low bpen = pens.red g.drawpie(bpen, rect, 0, 365) '' fill circle low...

visual studio 2005 engineer adding controls aspx.designer.cs

i'm fan designer, i move formula loyal aspx page. however, given reformat (and streamer adult reformat), designer.cs files have updating justly manually coding .aspx file. means noticing new controls throwing compiler errors. how prevented designer.cs record forced recompile after manually coding aspx file? i know i form controls manually engineer file, nonetheless radical well, repulsive formulating incomparable aspx pages. edit webdude's answer used to work, nonetheless switching settlement perspective longer solves problem any class consistency. any some-more ideas?

how quit 3rd jubilee web biased sharepoint 2 (2003) sharepoint 3 (2007)

i am migrating site sharepoint 2 3 (in fact, sharepoint portal server 2003 microsoft business sharepoint server 2007). there handful 3rd jubilee web tools given migration, an in-place upgrade, i need exercise web tools new farm. how i this, given i have finished adult web tools presumption sharepoint settlement analyzer form cab files? i simply muster cab files somehow, even nonetheless finished solutions? i need lift cab files removed repackage solutions? i need new versions web parts, combined sharepoint 3, maybe correct pages them?

using frombase64transform cryptostream?

i have .net twine base64 encoded illustration an array encrypted bytes. assembled this: string encrypt( twine summary ) { cryptostream cryptostream = ... streamwriter tide = new streamwriter( cryptostream ); ... relapse convert.tobase64string( ... ); } now i wish decryption duty like string decrypt( twine cypher ) { textreader reader = new stringreader( cypher ); byte[] aegis = new byte[ cypher.length ]; for( int i = 0; i < cypher.length; ++i ) { buffer[ i ] = (byte) reader.read(); } frombase64transform transformer = new frombase64transform(); memorystream tender = new memorystream ( transformer.transformfinalblock( buffer, 0, buffer.length ) ); ... } is there proceed frombase64transform directly cryptostream (as .net support suggests), instead manually converting twine bytes, following manually decoding bytes, finally decrypting decoded bytes?

how arrangement objects by wcf?

my digest separate adult customary 3 covering structure silverlight app. is: a bottom layer, category library contains business objects, logic, information opening etc. a center covering wcf use communicates with; my silverlight front end the problem i have now bo's unprotected by wcf ui wholly enclose private variables, zero propertys methods. is there an easy proceed arrangement full vigilant (via attributes configuration)? what best solution?

vb6 date information type: pointing formatting

how accurate vb6 date information form (by proceed fractions second)? how format arrangement fractions second? i'm revisiting vb6 after years absence, life me can't remember things i used know. i deliberate putting add-on this, since memory leaked (hur hur hur). i found api afterwards, seems work: declare servant getsystemtime lib "kernel32.dll" (lpsystemtime systemtime) public form systemtime year integer month integer dayofweek integer integer hour integer footnote integer second integer milliseconds integer end type

which obscure overthrow plugin should i use?

, , ? there's bit around topic, finish here? edit: it's integrate months now, i finished adult last plugin slowed obscure down too much, con each i altered record outmost eclipse. i ditched plugin together only went tortisesvn.

why mpi deliberate harder common memory erlang deliberate easier, both message-passing?

there's lot seductiveness days erlang libel minute together programs multicore. i've listened remonstrate erlang's message-passing denote easier way widespread shared-memory models such threads. conversely, high-performance computing village widespread together programming denote mpi, also implements message-passing model. nonetheless hpc world, message-passing denote generally deliberate unequivocally challenging way in, remonstrate common memory models such openmp upc easier way in. does anybody know since there such inadequacy notice message-passing vs. common memory hpc worlds? due component inadequacy erlang mpi exercise summary flitting creates erlang-style message-passing many easier mpi? there reason?

mvc denote structure python

i'm carrying problems structuring classes denote biased an mvc settlement python app. matter i spin things, i keep controlling spin imports. here's i have: model/__init__p.y should reason denote category names so i "from denote import user" e.g. controller unit test case model/database.py holds database class needs import denote classes orm initialization should achieved initial way import, i.e. additional init calls instantiations (all methods database category @classmethods) model/user.py contains user denote class needs opening database category queries should get bottom category common denote classes share functionality (database persistency methods, parameter validation formula etc.) i have nonetheless genuine universe python app contracting mvc, proceed substantially un-pythonic (and presumably language-agnostic disaster tip that...) - any suggestions solve this? thanks, simon

ui settlement / workflow: changing same ability churned objects

i am looking whole ui settlement / work-flow changing same ability opposing churned objects. suppose i have an vigilant category called person. chairman category ability called city. i wish name 5 chairman objects change city ability 5 "new york" movement ui. this challenging accomplish programatically, nonetheless i am carrying challenging opening adult an discerning ui work-flow. guess modal used itunes change information churned comparison songs. i adult another work-flow, thought already gotten push-back during work. thoughts? ideas? edit: i conclude answers far. there integrate additional points i out: should before city values arrangement way? so, how? should total ability shade arrangement city values now same opposite tone indicator? how should boolean properties (person.isalive example) displayed? three-state toggle/check box? us drop-down 3 values? ideas?

java concentration installers

i'm looking java-web-start, i'm looking thick-client concentration designation toolkit. i've got stand-alone concentration consists several files (jar files, information files, etc) need graceful customary designation tasks, seeking user aim directories, have locate tools component - select per-machine per-user settlement options presumably try detect accessory settings them. i'm looking something msi sorceress driven designation applications. what's good installer java? ideal cross-platform able (linux, mac osx windows).

.net regex balancing groups countenance - relating balanced

conduct explode. i've got twine i'm perplexing match: other things blah blah.... { things stuff {key: stuff stuff } } some-more stuff..... here's regex: [^{}]* # anything isn't { } \{ # starting { (?> # atomic group: pitch divided backtracks exit [^{}]+ | \{(?:\w+:)?(?<depth>) # relating { and discretionary "word:" pull smoke-stack | \}(?<-depth>) # relating } cocktail stack )* (?(depth)(?!)) # abyss unbalanced, destroy match \} # finale } [^{}]* # anything isn't { } so, i'm perplexing review balancing curly braces, where opening curly braces have an discretionary followed colon. above regex matches instance string...

asp.net: set css category control during databind?

a list quarrel generated controlling an asp:repeater: <asp:repeater id="announcementsrepeater" onitemdatabound="announcementsrepeater_itemdatabound" runat="server"> <itemtemplate> <tr id="announcementrow" class="announcementitem" runat="server">...</tr> </itemtemplate> </asp:repeater> now data-bind i wish symbol "unread" announcements opposite css class, web-guy perform whatever styling wants compute between review unread announcements: protected vacant announcementsrepeater_itemdatabound(object sender, repeateritemeventargs e) { (e.item.itemtype != listitemtype.item && e.item.itemtype != listitemtype.alternatingitem) return; // compared information item proclamation announcement = (announcement)e.item.dataitem; webcontrol quarrel = (webcontrol)e.item.findcontrol("announcementrow"); (row != null) row.cssclass = row.cssc...

how fetch value another quarrel within same information pipleline?

i have information hallowed several transformations information complete, problem there parent/child charge managed information - best explained an example each quarrel (column names finished up) row_key parent_row_key row_name parent_row_name some rows have row_key == parent_row_key (their possess parent) some rows news another row (row 25 progenitor quarrel 44 example). in case, quarrel 25 progenitor quarrel 44. i need put quarrel 25's row_name quarrel 44's parent_row_name. i query information tube value?

the best php lib/class beget rss/atom

i have furnish an rss/atom feed several applications, i wish know good library category means furnish both, already handles common problems. for example, i used years does put right format date, feed well-handled several aggregators. update: why i am looking library? since i used years, i hacked few times, small problem. maybe preference being justly followed.

how supplement enterprising 'where' clauses linq query?

i've got user list bitmask contains user's roles. linq query next advantage users whose roles consolidate 1, 4 16. var users = u dc.users where ((u.userrolesbitmask & 1) == 1) || ((u.userrolesbitmask & 4) == 4) || ((u.userrolesbitmask & 16) == 16) name u; i'd rewrite slight next advantage users given roles i reuse it: private list<user> getusersfromroles(uint[] userroles) {} any pointers boldly build query? thanks

paver 0.8.1 harmony python 2.6

does anyone control bootstrap the growth area controlling paver python 2.6 ? i have exercise python 2.6, exercise paver easy_install-2.6, all looks fine. but i try launch bootstrap slight raises an urllib2.httperror (: http blunder 404: found) while perplexing download . i have tryed supplement repremand setuptools egg record (which 0.6c9) support-files directory, bootstrap.py egg file, nonetheless doesn't seem since still try download 0.6c8 chronicle some-more available. any ideas solve emanate ? thanks lay bertrand

best practices : where place mandatory files

i'm operative array 'helper' classes, affectively have garland stationary functions grant controllers actions have opening chunks common functionality. problem files have used transfer martial any functionality mandatory opposing modules/application outcome > 3k lines distance during tip they've got 50 require_once declarations! obviously perspective concentration wan't little biased functionality accessible helpers inherits mandatory files, finish adult bloating your app. if i consolidate files per need basis, i finish adult origination countless require_once calls mandatory files, it's possess over (compounded frequency), i need infinite volume functionality accessible supporter files. so radically doubt where change struck there best use employ? thanks, flunga

make dom component effectively read-only

i'm minute .net forms control correct html controlling mshtml. i am formulating tradition elements wish effectively read-only. i guess i focusing whole component any concentration entered anywhere component nonetheless htmlelement.focus() doesn't name whole component i don't seem means constraint opening cursor. another choice lift an eventuality whenever calm component altered (on keydown i expect) nonetheless i can't eventuality fire, either. any ideas since expectations eventuality function wrong swap suggestions implementation?

writing optimization function

i'm perplexing tennis reservation component i got stucked problem. let's contend have players prefs per probity number, hour. also each actor ranked there day/hour container there several players with preferences container tip priority should chosen. i'm pondering controlling optimization algorithms solve problem nonetheless i'am certain best cost duty and/or algorithm use. any advice? one some-more thing i move python nonetheless language-agnostic recommendation acquire also. thanks! edit: some clarifications- the improved priority wins limb changed nearest slot, rather stretchable slots question yes, maximizing array removing many rarely preffered times

problems shutting down jboss obscure i change jndi port

Image
1st phase i have problem shutting down controlling jboss instance underneath obscure given i changed jndi pier jboss. impetus i close down console perspective nonetheless with stop symbol (it still searches jndi pier during default 1099 port). i'm looking disrespectful any solutions. conclude you! used environment: jboss 4.0.2 (using default ) eclipse 3.4.0. (using jboss collection 2.1.1.ga) default ports: 1098, 1099 changed ports: 11098, 11099 i altered following biased jbosspath/server/default/conf/jboss-service.xml: <!-- ==================================================================== --> <!-- jndi --> <!-- ==================================================================== --> <mbean code="org.jboss.naming.namingservice" name="jboss:service=naming" xmbean-dd="resource:xmdesc/namingservice-xmbean.xml"> <!-- value mod...

how repair dwmapi.dll delay-load dependency underneath winxp?

i have built .dll underneath winxp claims can't dwmapi.dll it's loaded. problem dll perspective dll, famous emanate xp users have ie7 installed. recommendation uninstall ie7 correct .net horizon around add/remove programs. i repair, zero changed. i'm uninstall ie7 given there contingency improved fortitude that's homogeneous "reinstall windows". i've review bad things attempted uninstall ie7, i'm kind route. i am controlling c++ underneath visible studio 2003 (7.1). i don't an choice where i competence have forced check loading during concentration launch. i only used default settings i combined dll project. i only an engaging option, linker->input->delay hallowed dlls, i put dwmapi.dll there force delay-loaded. however, i linking: link : warning lnk4199: /delayload:dwmapi.dll ignored; imports found dwmapi.dll .. impetus didn't change thing perplexing bucket dll. heck it, i total whole tree dlls lead dwmapi.dll, i same message. (for recor...

asp.net digest ideas?

i've recently solid step-up trust asp.net (i haven't coded asp.net 2 years so, many altered given then). i wish work new mvc framework, try jquery, linq sql fundamentally only locate adult many present features. to that, i wish start good digest asp.net, critical web concentration cut mvc framework. my wholly problem is.. should i build? i loathing formula things already exist web i only wish good web concentration (if it's something useful i competence tell things such smoke-stack .com ;) only share the source. any thoughts?

same class, opposite namespaces, proceed simplify?

i'm operative webservice offers roughly repetitious formula opposing twin namesspaces. lets contend instance pigfeet horsefeet, both namespaces enclose feet category formula works feet category requires biased same namespace. right formula i'm forced something this: if( _animaltype == animaltype.pig ) { //namespace pigfeet pigfeet.feet feet = new feet(); feet.washfeet(); } if( _animaltype == animaltype.horse ) { //namespace horsefeet horsefeet.feet feet = new feet(); feet.washfeet(); } this withdrawal me lots repetitious code. there proceed select namespace some-more dynamically?

why does filesystemwatcher emanate churned change events i duplicate record directory

i've combined little exam concentration controlling .net filesystemwatcher keep an eye directory. i duplicate large-ish (a few mb) record office i following events listed (see screenshot - replace mislay eventuality start with). i combined eventuality (as expected), nonetheless following twin altered events (about 0.7 seconds apart). since this? means vital problems concentration i am formulation arise - i'd try things record twice (presumably once before finished being combined to!). there anything i stop happening? i've review elsewhere, should only altered eventuality once record altered following closed. since am i removing two?

eclipse plugin obvious problem - lifeless package craziness between mac pc

i am building collection plugins obscure 3.4 (official) both mac pc. at donation (i'm wakeful best practice) common plugins trade packages. the problem this: listed packages lifeless since subpackages not, for example: prefix.core competence lifeless while prefix.core.model competence be. even nonetheless i same obvious file, carrying lifeless packages listed height raises an blunder obvious record platform. i replace packages platform, following i height i'm told plugin does trade everything. any thought going on? i have thought since there differences between pc mac non-ui associated issue. wholly touching inadequacy mac controlling java 5 (still obscure java 6) while pc controlling java 6, nonetheless manifests should have zero it.

language comforts exercise relational algebra

i've perplexing encode relational algebra scala (which knowlege many modernized form systems) only don't seem proceed where i want. as i'm means educational domain programming libel settlement i don't unequivocally know underline feeling for. so libel comforts needed, libel those features, exercise statically accurate relational algebra? some requirements: a tuple duty mapping names statically tangible set current names tuple doubt values form specified name. lets name-type set domain. a union set tuples same domain such operation any tuple uniqe set so distant denote eaisly modeled scala simply by trait tuple trait relation[t<tuple] extends set[t] the vals, vars defs tuple name-type set tangible above. nonetheless there should'n twin defs tuple same name. also vars polluted defs should substantially limited too. now machiavellian part: a join twin family union where domain tuples kinship domains operands tuples. such wholly tuples carrying same ranges intersecti...

theory: "lexical encoding"

i am controlling reign "lexical encoding" miss improved one. a arguably component section communication opposing letter. unicode tries distribute numeric value any minute famous alphabets. minute language, glyph another. unicode 5.1 assigns some-more 100,000 values glyphs currently. out approximately 180,000 difference being used difficult english, conspicuous articulation 2,000 words, should means opposite whole terms. "lexical encoding" encode any any letter, encapsulate within sentence. // an simplified instance "lexical encoding" string visualisation = "how today?"; int[] visualisation = { 93, 22, 14, 330, query }; in instance any token twine encoded an integer. encoding amour here simply indifferent an int value formed generalized statistical ranking usage, indifferent consistent doubt mark. ultimately, both spelling & definition though. any "lexical encoding" safety definition vigilant visualisation whole, libel specific....

why thread functions need announced '__cdecl'?

sample formula shows emanate threads controlling mfc declares thread duty both stationary __cdecl . since latter required? boost threads don't worry convention, only an anachronism? for instance (mfc): static __cdecl uint myfunc(lpvoid pparam) { ... } cwinthread* pthread = afxbeginthread(myfunc, ...); whereas boost: static vacant func() { ... } boost::thread t; t.create(&func); (the formula samples competence 100% repremand i am nowhere circuitously an ide). what indicate __cdecl? does assistance formulating threads?

restoring ui settings c# winforms - eventuality respond to?

when repremand revive ui plans settings system.windows.forms.control? i attempted this: foobargadget control = new foobargadget(); parent.controls.add(control); control.fobnicatorwidth = lastlayoutsettings.fobwidth; no cigar. reason? control isn't finished laying out the internals; it's the default distance 100x100 pixels after construction. once it's finished loading indeed displays ui, 500x500 pixels. therefore, sourroundings fobnicatorwidth 200 pixels fails; it's incomparable control. is there control.loaded eventuality - somwehere where i revive saved ui settings?

sql server use profession emanate & tutorials

i've looking implementing an outmost activator sql server demonstrate 2005, i total queues, services, contracts, eventuality notifications database. i also total trigger send summary aim queue. all parses, runs, trigger firing. however, i name aim queue, discerning t-sql book accept queue, zero there. i'm wondering: how even possible? messages being auto-received? is there any proceed check while eventuality summary arrived correctly? is there improved proceed run slight server asynchronously after trigger fired? as an aside, good educational component use profession tough find. anyone any resources, greatfully let me know. right now, i'm reading book the companies' online apparatus nonetheless even pain filter through. thanks, william

best linux chain controlling mono

i'm .net developer inspect building controlling the horizon mono. if initial digest successful i happily deposition an os training curve, nonetheless right i wish concentration removing things adult controlling observant formula working. what best chain start with, presumption i know unequivocally small linux, nonetheless am an means developer? fast (hours/days/weeks?) i design grasp this? some feedback distant (thanks answers, guys): decided centos, nonetheless also since fits sole doing .net formula i wish pier mono.the wholly emanate i indispensable chronicle 4 an out-the-box exercise mono with assistance i have means indicate where i am means run compiles start addressing porting issues. took few hours - biggest training offshoot around pulling linux. 20081231: found following essay controlling mono ubuntu: