Posts

Showing posts from February, 2010

is illusory xss dispute obtain httponly cookies?

reading finished me start thinking, illusory an httponly cookie achieved by any form xss? jeff mentions "raises bar considerably" nonetheless creates sound doesn't totally strengthen opposing xss. aside fact browser support underline properly, hacker obtain user's cookies httponly? i can't cruise any proceed an httponly cookie send itself another site review script, seems stable confidence feature, nonetheless i'm always vacant during simply work around confidence layers. in sourroundings i work in, ie exclusively browsers aren't concern. i'm looking personally ways spin an emanate don't rest browser specific flaws.

how uniformly does website launch wholly you?

my coworkers i carrying contention yesterday. seems matter good prepared matter many exam matter fan says immediately before site becomes public, initial site launches roughly always seem rather rocky. clients improved others, nonetheless mostly things only glorious during contrast astonishing horribly wrong site becomes public. is common experience? i'm only articulate functionality defilement down (although that's mostly problem well). i'm also articulate sites work accurately proceed wanted to, nonetheless astonishing tolerable fan it's site public. i'm articulate clients have informed site during many growth process. meaning, open launch unequivocally initial they've seen site. if you've dealt problem before, have found proceed provoke situation? only something always rather problem?

migrating java uno formula openoffice 2.4 3.0

i nifty little apparatus combined modify spreadsheets plain text. since private hacker tool, relied openoffice 2.x review files. but i hallowed openoffice 3 attempted get run, i unsuccessful miserably, since i'm presumably blank jar files half classes have replaced. i'm including 5 jar files ure/java (ure: runtime environment, subset openoffice.org hosting managing uno components) am still blank classes: com.sun.star.frame.xcomponentloader com.sun.star.frame.xcontroller com.sun.star.frame.xdesktop com.sun.star.frame.xmodel com.sun.star.frame.xstorable com.sun.star.sheet.xspreadsheet com.sun.star.sheet.xspreadsheetdocument com.sun.star.sheet.xspreadsheetview com.sun.star.text.xtextdocument any pointers?

how asp.net route user behind starting point

guys, ive minute formula 15+ years, nonetheless managed prevaricate web development until 3 months ago. i have hereditary leave asp.net concentration (started .net 1.1, were .net 2.0), its administration apparatus the product. in several places admin apparatus simply maintains enlarged lists values. the list (could 200+ items) seem gridview (page a), user clicks an correct symbol an item, brings an correct page vigilant (page b) where change value (or values, an vigilant list competence compared several values e.g. name castle comparison colour, greaten cat . . .) currently user presses save page b, route behind page a. page opens during tip list, annoys user mostly several equipment method need configured together, user needs 1. remember vigilant only edited, 2. confine down item what i wish have list move user behind vigilant only edited, mostly several equipment method need configured together. fastest gun stop . . . keep reading suggestions lines regroup equipment there fewer list...

loader scripts arm str7xx

i'm perplexing way arm controlling obscure + cdt + yagarto (gnu toolchain) + openocd. several illustration projects (from yagarto site example) i found linker scripts (*.ld) where lot fasten information specified (along sections definitions). indeed i haven't faced files before (iar doesn't need them), i rather challenging know initial glance. doubt i unparalleled such book record aim processor (str710fz2t6) projects i have informed minute scripts any project. i unparalleled record projects sole aim processor greatfully recommendation where i such concept one.

constant value saving expression

in , mentioned move for(;;) impression since while(true) impression gives warning messages msvc saving countenance being constant. this bewildered me greatly, given consistent values saving expressions useful proceed avoiding #ifdef hell. instance, have your header: #ifdef config_foo extern int foo_enabled; #else #define foo_enabled 0 #endif and formula simply saving trust compiler undervalue passed formula config_foo isn't defined: if (foo_enabled) { ... } instead carrying exam config_foo each foo_enabled used: #ifdef config_foo if (foo_enabled) { ... } #endif this settlement pattern used linux heart (for instance, include/linux/cpumask.h defines several macros 1 0 smp noxious duty smp enabled). what reason msvc warning? additionally, there improved proceed prevaricate #ifdef harm but carrying invalidate warning? an overly extended warning should enabled general?

excluding activerecord properties xml digest rails

i have an activerecord denote i modify xml, nonetheless i wish properties rendered xml. there parameter i pass news slight keep ability being rendered xml? below an instance i am articulate about. def show @person = person.find(params[:id]) respond_to |format| format.xml { news :xml => @person } end end produces following xml <person> <name>paul</name> <age>25</age> <phone>555.555.5555</phone> </person> however, i wish phone ability shown. there parameter news slight excludes properties being rendered xml? kind following example def show @person = person.find(params[:id]) respond_to |format| format.xml { news :xml => @person, :exclude_attribute => :phone } end end which news following xml <person> <name>paul</name> <age>25</age> </person>

best proceed enterprising classes controlling python globals()

i'm operative web concentration relapse non-static set modules depending user input. any way python category constructor accepts unparalleled parameter an '.html' ability contains output. pulling category boldly tellurian namespace works: result = globals()[classname](param).html and it's definitely some-more laconic than: if classname == 'foo': outcome = foo(param).html elif classname == 'bar': ... what deliberate best proceed this, stylistically? there risks reasons tellurian namespace?

in c#, 2 processes reading minute same file, best proceed prevaricate slight locking exceptions?

with following record reading code: using (filestream filestream = new filestream(filename, filemode.open, fileaccess.read, fileshare.none)) { controlling (textreader tr = new streamreader(filestream)) { twine filecontents = tr.readtoend(); } } and following record code: using (textwriter tw = new streamwriter(filename)) { tw.write(filecontents); tw.close(); } the following difference sum seen: the slight can't opening file 'c:\temp\myfile.txt' since is being used another process. what best proceed avoiding this? does reader need retry on receipt difference there improved way? note reader slight controlling filesystemwatcher know record changed. also note that, instance, i'm not looking alternatives ways pity strings between 2 processes.

creation timestamp final transform timestamp hibernate mysql

for certain hibernate entity have requirement store the origination final updated. settlement this? what information forms database (assuming mysql, presumably opposite timezone jvm)? information forms timezone-aware? what information forms java ( date , calendar , long , ...)? whom grateful sourroundings timestamps—the database, orm horizon (hibernate), concentration programmer? what annotations mapping (e.g. @temporal )? i'm wholly looking operative solution, nonetheless stable well-designed solution.

magic quotes php

according , method formula some-more portable, advise controlling something following evading data: if (!get_magic_quotes_gpc()) { $lastname = addslashes($_post['lastname']); } else { $lastname = $_post['lastname']; } i have validation checks i performing, nonetheless secure above quite terms evading data? i also saw incantation quotes deprecated php 6. impact above code? i move have rest database-specific evading duty mysql_real_escape_string().

how mstest section exam listens an eventuality carried another thread?

im minute exam expects accept an eventuality an vigilant calling. specifically, i am job out an vigilant connects an aix accessory around ssh (using open source granados project), following disconnecting, i wish certain i accept onconnectionclosed eventuality being carried during disconnect. sounds rudimentary enough, ive combined tests past, nonetheless uncanny function occurring i trust associated threading. basically, vigilant i lifting onconnectionclosed eventuality opposite thread i from. im observant i run exam selecting debug test ui, passes, nonetheless i select run test, fails (even there breakpoints set during debug run). ive finished googling found seems infer default mstest horde runs unparalleled thread mode nonetheless config change run multi thread mode. sounded logically repair problem, nonetheless course, not. some posts ive opposing also me cruise mstest simply monitoring credentials threads (so events carried being heard). also sense, given seems work debug mode, s...

php/mysql login works server (php 5.0.2) nonetheless does work (php 5.1.6)

here bare down chronicle i justify users, works glorious php v5.0.2/mysql 4.0.21 server, nonetheless fails php v5.1.6/mysql v5.0.45 server. in formula below, should i wakeful anything competence upheld newer chronicle php & mysql? tellurian variables have enabled. <?php if(!isset($http_post_vars['username'])&&!isset($http_post_vars['password'])) { //visitor needs enter name password ?> <h1>please record in</h1> page secret. <form method="post" action="<?php relate $php_self;?>"> <table border="1"> <tr> <th> username </th> <td> <input type="text" name="username"> </td> </tr> <tr> <th> evidence </th> <td> <input type="password" name="password"> </td> </tr> <tr> <td colspan="2" align...

getting twine sets display layer

we're operative an home information component being combined c# controlling nhibernate map objects database. mvc settlement being used removed business explanation ui. here problem, how non-static sized opposite set strings ui? for instance contact vigilant have ability named city binds city hit lives. republic app combined some-more 80 cities. those cities combo box? (or information grid, tables, ...) instance city array fixed. there need supplement another city enlarged time. (if city list changes, recompiling problem) for instance contact vigilant have another ability named foobar going reason 1000 opposite twine values values going comparison combo box property. set grown users want. bucket combo box values? (if twine list statically combined combo box object, recompiling problem) i have opposite solutions below all twine values statically combined combo box formula designer get values apparatus file write those values an xml record (actually same above, nonetheless need re...

how prevaricate record blocking

we monitoring swell customized app (whose source underneath the control) writes xml manifest. during times , concentration stranded due amateurish obvious file. nonetheless covering the traces definitely shutting record hoop controlling file.close also formulating record variables controlling blocks. nonetheless somehow keeps happening. ( the concentration multithreaded during many 3 threads competence accessing file. ) another engaging thing app updates obvious during 3 opposite events(add items, deletion items, execution items) nonetheless wholly pang eventuality (completion items). formula listed here using (var st = new filestream(menifestpath, filemode.open, fileaccess.read)) { controlling (textreader r = new streamreader(st)) { var xml = r.readtoend(); r.close(); st.close(); //................ rest the operations } }

flex drag_drop eventuality - illusory opening settlement being dragged?

when start flex drag action, pass surrogate settlement displayed drag opposing screen. dump occurs, i wish means squeeze surrogate nonetheless i can't proceed dragevent object. is possible? i wish indeed dump dragged settlement rodent symbol released... flex automatically does good timorous animation surrogate nonetheless i don't wish that. the arrangement i don't wish - surrogate private new settlement total nonetheless accurately right place... more info: i attempted adding surrogate settlement information vigilant dragsource. i means opening dump occurred saw there category mx.managers.dragclasses.dragproxy seems have info i need... nonetheless category documented? so there's twin questions really... surrogate out position rodent cursor within proxy, invalidate flex dump animation.

text quarrel parser c#

i have calm record format: l o d c s e 1 o f 2 ... j o i n t d i s p l c e m e n t s (global) dilemma x-dsp y-dsp z-dsp x-rot y-rot z-rot 1 0.0 0.0 0.0 0.0 0.0 -0.001712 2 0.000646 -0.021756 0.0 0.0 0.0 -0.001339 3 0.003562 -0.038487 0.0 0.0 0.0 -0.000727 4 0.006478 -0.041661 0.0 0.0 0.0 0.000104 5 0.009536 -0.036266 0.0 0.0 0.0 0.000720 6 0.012595 -0.022824 0.0 0.0 0.0 0.001326 7 0.014724 0.0 0.0 0.0 0.0 0.001948 8 0.010000 -0.018686 0.0 0.0 0.0 -0.001117 9 0.009354 -0.036887 0.0 0.0 0.0 -0.000829 10 0.005767 -0.041661 0.0 ...

can't insert record table

i wrote way includes minute reading database. i run app try perform minute i following method: public stationary vacant addmessage(string callid, twine content) { twine name = "insert sporocilo (oznaka_klica, smer, vsebina, prebrano, cas_zapisa) values (@callid, 0, @content, 0, @inserttime)"; sqlcommand cmd = new sqlcommand(select, conn); cmd.parameters.addwithvalue("callid", callid.tostring()); cmd.parameters.addwithvalue("content", content); cmd.parameters.addwithvalue("inserttime", "10.10.2008"); try { conn.open(); cmd.executescalar(); } catch(exception ex) { twine sdummy = ex.tostring(); } finally { conn.close(); } } after slight i review annals list arrangement form. record extrinsic before modernise seen nonetheless following i exit app feeling during li...

how tradition drawn uitableviewcell resize properly?

for opening reasons, i pull strings uitableviewcell tradition perspective overrides the drawrect slight pull strings directly perspective rectangle controlling nsstring:drawinrect. identical apple's tableviewsuite instance 5-customtableviewcell. however, i plead setediting cave move adult mislay button, perspective ends adult squeezed coming after animation completes. denote this, plead setediting:yes customtableviewcell instance mentioned above observe distortion. there any proceed around should i only return behind controlling uilabels text?

how does confidence program hinder the unapproved dismissal system?

it's trust confidence program (like symantec's norton antivirus) oftentimes delimit dismissal windows component around "add mislay programs" utility, going distant catchy need dismissal way achieved symantec's homepage. (i assume hinder antagonistic way disabling confidence software... any reason?) how way configured dispute dismissal around system's uninstall utility, around deletion program's directory? norton wholly program unit employs technique, widespread among confidence software? there identical techniques used unix / -like systems?

parsing nested tags file

i am wondering - what's many effective proceed parsing something like: {{header}} hello name {{name}} {{#content}} calm ... {{#persons}} <p>my name {{name}}.</p> {{/persons}} {{/content}} {{footer}} of impetus commanded rather templating component end, digest emanate hashmap "lay over" template, something this $hash = array( 'header' => 'this header', 'name' => 'david', 'content' => array('persons' => array(array('name' => 'heino'), array('name' => 'sebastian')), 'footer' => 'this footer' ); it's value seeing "sections" (the tags start #), steady some-more once, i cruise trips me adult ... also, any domain enclose any array sections, unchanging tags... so.. how'd it?

script associate an progression program

my fan replacing ms business openoffice workstations. way trade record comparison controlling .xml progression (using open format) opens controlling tide compared way (using shellexecute) the problem openoffice does register .xml progression compared it. manually organization works fine, nonetheless i wish .reg something simply change setting. i'm looking registry pc change already made, nonetheless "hkey_classes_root\.xml" key does have anything referencing openoffice. where organization stored? i book work?

best proceed acknowledgment email links quarrel id

i've got web site eventuality someone acknowledgment email. now email i have couple user click endorse viewed mail. i'd consolidate user's evidence (or futile code) acknowledgment address, user does need enter palm again, nonetheless i this, evidence finish adult browser story record files. is there any proceed acknowledgment couple an email send information user name password, but finale adult couple somehow? is it, example, illusory have an quarrel form an email send evidence post instead get?

'run as...' doesn't justly emanate user environment

my c# concentration crashes underneath resources run non-admin user. i'm experiencing problem windows server 2003 i'm perplexing some-more information it. competence problem windows os's. it seems i emanate non-admin user, following run concentration underneath user 'run as...' command, users sourroundings doesn't set adult correctly, temp sourroundings non-static points during c:\windows\temp instead users carrying possess temp folder papers settings profile. user doesn't have permissions folder, concentration crashes .net jit compiler tries write/read folder. if i record user, conditions still wrong. i don't sourroundings being prepared thingy customarily logging new user, app still won't run but crashing during startup. infact i've satisfied user can't run calc.exe programs windows folder. appears sourroundings henceforth messed adult i speculation wholly proceed disrespectful mislay profile. if i emanate non-admin user, record before doin...

what an easy proceed emanate excusable one-off python object?

i emanate excusable one-off python vigilant reason command-line options. i something this: options = ?????? options.verbose = true options.ignore_warnings = false # then, elsewhere code... if options.verbose: ... of impetus i dictionary, nonetheless options.verbose some-more entertaining easier form options['verbose'] . i thought i should means do options = object() , given object bottom form category objects therefore should something category attributes. nonetheless doesn't work, since an vigilant combined controlling object() doesn't have __dict__ member, can't supplement attributes it: options.verbose = true traceback (most new last): record "<stdin>", line 1, <module> attributeerror: 'object' vigilant charge 'verbose' what simplest "pythonic" proceed emanate an vigilant used way, preferably but carrying emanate an additional supporter class?

possible moviecliploader() bucket swf opposite server?

having issues loading files media hosting swf bombard (a swf loading swfs assets). mp3s images work glorious nonetheless swf never loads. formula like: swfpath = "" movie_loader.loadmovie(swfpath, "mc_swfimage"); if swfpath set "swf/n00001.swf" loads glorious i indicate firefox towards http couple above (555s placeholders here) opens record firefox only fine. is confidence does loadmovie hoop http paths? note works glorious i loadaudio same thing indicating an mp3.

teacher news algorithm

this problem i've mind enlarged time. being son dispense programmer, occurred me early on... nonetheless i still haven't found fortitude it. so problem. needs emanate news school, controlling constraints. generally divided twin categories: sanity checks a dispense can't learn twin classes during same time a tyro can't follow twin lessons during same time some teachers contingency have during slightest off during week all days week should lonesome table subject x contingency have accurately so-and-so hours any week ... preferences each teacher's news should restrict illusory (i.e. dispense should work hours quarrel pauses possible) teachers have days off should means demonstrate benefit day teachers work part-time should means demonstrate benefit presumably work commencement finish propagandize day. ... now, after few years awaiting fortitude (and training thing twin meanwhile...), i satisfied smells np-hard problem. is proven np-hard? does anyone have an thought...

py3k rc-1: "lookuperror: opposite encoding: uft-8"

i only hallowed initial redeem petitioner python 3.0 got blunder after typing: >>> help('modules foo') [...] lookuperror: opposite encoding: uft-8 notice says uft -8 utf -8 is py3k specific bug misconfiguration part? i have any versions python hallowed french locality windows xp sp3 machine. edit a filled october 16th.

vb.net - click quarrel symbol webbrowser page

i have html page open webbrowser object, i enter username evidence okay, nonetheless i'm stranded don't know quarrel info. here html formula username/password submit: <div id="signin"> <h2 class="ir"> <em></em>sign in</h2> <form action="/login/" method="post"> <input id="login-url" name="login[url]" type="hidden" value="/characters/" /> <input id="login-urlerror" name="login[urlerror]" type="hidden" value="/account/?error=1" /> <fieldset> <ul> <li class="row"> <label for="login-username"> username <span class="req">*</span> </label> <input id="login-username" name="login[username]" ...

nunit.exe can't work perspective 64bits x86 build

i am perspective 64 pieces i have digest built x86 configuration. work fine. now, during emanate test. have nunit 2.4.8 nonetheless have lot problem. the exam loading tray nunit.exe (gui) name .dll directly nonetheless executing have system.badimageformatexception. i have review poison google few pretence nunit.exe.config nonetheless zero work. (changing utf8... uncomment .net chronicle startup). any idea? update i have purify fortitude erase bin folder. i accumulate i clearly i have wholly /x86/ bin office aged /debug/ x64. when i nunit i have an difference (in loading) : system.io.filenotfoundexception... server smoke-stack trace: during system.reflection.assembly._nload(assemblyname filename, twine codebase, justification assemblysecurity, public locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection) during system.reflection.assembly.internalload(assemblyname assemblyref, justification assemblysecurity, stackcrawlmark& stackmark...

pocket pc emulator network opening but practical pc?

in building program container pc platform, i have happily controlling container pc emulator microsoft provides visible studio (and giveaway download). provides many faster develop/deploy/test cycles. (of course, i still final contrast genuine hardware). i have also found providing emulator folks business (e.g. support team) allows accurate shade shots small effort. so, i'm positive good apparatus situation. here's concern: in method networking capabilities emulator, contingency exercise microsoft practical pc accessory run emulator. seems an awful heavyweight requirement such little tool. anyone found easier proceed assent networking functionality container pc emulator?

how i mention confidant chronicle theme's default font?

i'm carrying problems querulous thesis harmony windows forms. don't set arise control windows form, component arise repremand typeface size. wish arise bold , tough codes rest component arise values tide thesis you're programming with. instance: system::windows::forms::label^ label1 = gcnew system::windows::forms::label(); this->label1->autosize = true; this->label1->location = system::drawing::point(9, 12); this->label1->name = l"lblexample"; this->label1->size = system::drawing::size(44, 13); this->label1->tabindex = 3; this->label1->text = l"example text"; if i following change properties around properties editor confidant = true, adds line: this->label1->font = (gcnew system::drawing::font(l"microsoft sans serif", 8.25f, system::drawing::fontstyle::bold, system::drawing::graphicsunit::point, static_cast<system::byte>(0))); is there proceed controlling default font, nonetheless origination b...

what's best proceed supplement self-update underline java representation application?

i'm perplexing figure out proceed supplement self-update underline java/swing concentration i'm operative on. basically i've got garland jar files additional functionality re-deployed hallowed users change. zero complicated, only check new chronicle released, download over http, following optionally offer restart app user. i feeling during webstart, work. nonetheless sole app does musty things classloading gc memory settings don't feeling upheld around webstart, during slightest thwart matters. (it's tweaked build jmeter) i also went down highway adding plugin handler , nonetheless unequivocally alpha, tries too many common bugs alpha stuff.

how check lifeless array vba macro

i wish check lifeless arrays. google gave me various solutions nonetheless zero worked. maybe i am requesting correctly. function getboiler(byval sfile string) string 'email signature low fso object low ts object set fso = createobject("scripting.filesystemobject") set ts = fso.getfile(sfile).openastextstream(1, -2) getboiler = ts.readall ts.close end function dim filenameslist variant, i integer ' activate preferred startfolder filesearch filenameslist = createfilelist("*.*", false) ' advantage record names ' performs filesearch, includes any subfolders ' donation result ' there signatures following stock sigstring range("a:a").clearcontents for i = 1 ubound(filenameslist) cells(i + 1, 1).formula = filenameslist(i) next i sigstring = filenameslist(3) if dir(sigstring) <> "" then signature = getboiler(sigstring) else signature = "" end if here filenameslist array empty, ...

regular countenance uppercase deputy c#

i have following c# simply replaces tools quarrel twine feeling equip:19d005 urls, this: input = regex.replace(input, @"(equip:)(\s+)", @"<a title=""view apparatus vigilant $2"" href=""/equipmentdisplay.asp?eqnum=$2"">$1$2</a>", regexoptions.ignorecase); the html ends adult looking this. <a title="view apparatus vigilant 19d005" href="/equipmentdisplay.asp?eqnum=19d005">equip:19d005</a> the wholly problem finish page expects eqnum querystring uppercase advantage repremand apparatus eqnum=19d005 nonetheless fails receives eqnum=19d005. i speculation i cgange repremand equipmentdisplay.asp's imperfect requirement uppercase values however, illusory i'd c# formula approve existent model asp page uppercasing $2 regex.replace matter above. ideally, i'd html returned feeling this: <a title="view apparatus vigilant 19d005" href="/equipmentdisplay.asp?eqnum=19d00...

ie: select digital certificate blank, lifeless list

Image
i've combined web concentration i've hosted iis 7 windows server 2008 machine. i've hallowed confidence certificate secure.xxxxx.com. when i crop web site microsoft internet explorer , i prompt: choose digital certificate identification website wish perspective requests identification. greatfully select certificate. there certificates. it's an empty, vacant list. if i click presumably ok cancel, following page loads only fine. there's warning denote internet path-finder there confidence issue. the apple safari browser won't arrangement page during all. safari can't open page. safari can't open page xxxxx because couldn't settle secure connection server xxxxx. both mozilla firefox google chrome bucket web site ideally hassles. why competence microsoft internet path-finder apple safari destroy bucket web site properly?

how i try new libel horizon but installing it?

with languages frameworks exist, new ones appearing time, i don't have download, install, configure any weigh it. past i've run opposing webapps grant brew formula window, law realtime browser, wholly educational setting. what your favorite sandbox sites given technology? edit: @fretj presumption couple glorious (+1 upvote), nonetheless i guess only experimenting google's possess apps (search, maps, earth, language, etc). nonetheless turns out contains few dark gems: offer apps, try out javascript libraries horde including , , , , . they're dark underneath libraries problem "pick an api" box. i abandoned problem since i guess an app called google libraries. there's also javascript problem javascript itself.

capture essence regex mislay them, efficiently

situation: text: string r: regex matches biased string. competence costly calculate. i wish both mislay r-matches text, indeed contain. currently, i like: import re ab_re = re.compile("[ab]") text="abcdedfe falijbijie bbbb laifsjelifjl" ab_re.findall(text) # ['a', 'b', 'a', 'b', 'b', 'b', 'b', 'b', 'a'] ab_re.sub('',text) # 'cdedfe flijijie lifsjelifjl' this runs regex twice, circuitously i tell. there technique pass, maybe controlling re.split? seems separate formed solutions i'd need regex during slightest twice well.

why shouldn't i universal::isa?

according this i shouldn't universal::isa() should instead $obj->isa() class->isa(). this means out something anxiety initial place following anxiety category i have do eval { $poss->isa("class") } and check $@ gumph, else use scalar::util 'blessed'; blessed $ref && $ref->isa($class); my doubt why? what's wrong universal::isa called that? it's many cleaner things like: my $self = change universal::isa($_[0], __package__) to presumably duty being called vigilant not. there good purify choice doesn't unwieldy ampersands potentially enlarged lines?

accessing remote record sharepoint web part

i recently built way parses remote record \some_server\c$\directory\file.xls works glorious internal accessory only normal aspx page. then i put way web part form vm sharepoint server i error: opening path '\some_server\c$\directory\file.xls' denied. the record common domain\authenticated users i am certain since denied? illusory sharepoint perplexing internal network use account? i read? conclude you.

how detect vc++ 2008 redistributable?

is there registry sourroundings i feeling establish presumably visible c++ redistributable installed, presumably standalone biased visible studio 2008? i know i launch vc++ 2008 redistributable installer let hoop detection, nonetheless feeling cleaner i check worry rising installer redistributable already system. it's biggie there sourroundings hunt for, only rough installers have new chronicle the software. won't need new windows installer-based installers operative reinstate aged tech ones combine modules.

spring initialization order

suppose i have integrate open beans: <beans> <bean name="a" ... /> <bean name="b" ... /> </beans> "b" exposes remote use doesn't need "a". assume "a" takes non-negligble load. means during restart cycle, concentration hangs remote client, indeed bond server nonetheless waits response until open enclosing entirely initializes. what i'd means have "b" remote use respond immediately, even (based concentration state) wholly relapse not_ready such. container, however, army wait until it's beans initialized, even mention beans lazy-init irrespective bucket order. i think carrying "b" accessible immediately meant open have accessible partially initialized container, sounds bad. however, i'd conclude any information anyone's got initialization method presumably you've found any reasonable workarounds.

why removed: asp.net mvc checkboxlist (without mvccontrib)

why checkboxlist private asp.net mvc preview redeem 5? currently i don't any proceed i emanate list checkboxes (with identical names nonetheless opposite id's) name 0-1-more options list. there an checkboxlist list donation mvccontrib library, nonetheless deprecated. i know htmlhelpers, nonetheless there does seem deputy checkboxlist preview 5. i emanate unequivocally rudimentary list below, nonetheless best proceed controlling asp.net mvc preview redeem 5? <input type="checkbox" name="inhoud" value="goed"> goed <input type="checkbox" name="inhoud" value="redelijk"> redelijk <input type="checkbox" name="inhoud" value="matig"> matig <input type="checkbox" name="inhoud" value="slecht"> slecht

what factors should outcome information opening covering i new project?

i training category sson, i need explain factors should impact your preference information opening technology. i am informed information opening methods typed information sets, linq sql, linq entities, .nettiers, llblgen, tradition calls sql tie objects management objects. some clients wholly grant stored procedures used, plead anything else. some clients prepared exercise .net 3.5 yet. some clients need center web use tier any web application. most i forms information sets tradition web services, i .nettiers codesmith. else should i pondering about?

does clarity put "send friend" symbol webpage?

how mostly things "send page friend" webpages? well, i definitely often. my doubt is, guys it's effectiveness? i strike webpage that's interesting, i cruise associate humour it, i only duplicate url browser bar, brew email press "send" button. opinion, it's wholly faster reduction mistake-aware following button/link webpage. addition, i'm unequivocally certain website does emails i enter there - don't store following sell $1/100 addresses spammers? my doubt - settlement website, put such links pages (it's mostly seen sites news/articles)? does even sense?

how store things you've learnt information wish keep?

granted trust best defended put practice, nonetheless programmers i'm certain there's only too many information. besides annotating your books, methods your possess personal knowledge-base have an simply permitted reference? do emanate your possess wiki program , save plain text, bookmarks, pdf, web pages etc..? only provide google/so your hulk knowledge-base hunt wholly required? you competence similar , impetus doubt simply news non programmers well.

parameterized exam box classes junit 3.x

i have junit 3.x testcase i means parameterize. i'd parametrize whole testcase (including fixture). however, testsuite.addtestsuite() slight does grant pass testcase object, only class: testsuite unit = new testsuite("suite"); suite.addtestsuite(mytestcase.class); i means pass parameter (a string) mytestcase instance combined exam runs. now, i have have removed category any parameter value. i attempted flitting an anynomous subclass: mytestcase testcase = new mytestcase() { twine getoption() { relapse "some value"; } } suite.addtestsuite(testcase.getclass()); however, fails assertion: ... mytestsuite$1 open constructor testcase(string name) testcase()` any ideas? am i aggressive problem wrong way?

wcf self-hosted use float confidence (authentication unsuccessful since remote jubilee closed float stream.)

i have self-hosted use i wish supplement float confidence to. i've set wshttpbinding.securitymode float clientcredentialtype httpclientcredentialtype.none. i've combined certificate set horde with servicehost.credentials.servicecertificate.setcertificate() i've also purebred using netsh http supplement sslcert ipport=127.0.0.1:80 certhash=[mycerthash] certstorename=my appid=[theguidoftheapptahtrunstheservice] verifyclientcertrevocation=disable i'm removing following blunder summary whenever i try service: "authentication unsuccessful since remote jubilee closed float stream." does meant the fan server try justify any other? i invalidate it? to things clear, i wish exercise certificate during client, i'm looking any authentication atm, only securing messages content, that's even possible.

flex media framework

does anybody know good media horizon flex? i'd means emanate apps play wholly those formats flex horizon provides support for, nonetheless formats good (like wav, wma, ogg other...). edit 13.10.2008.: recently separate out me answers domain i should maybe paraphrase question, here goes: i'm unequivocally looking proceed play several media formats flex/air app. onekidney posted good answer ogg/vorbis. does anybody know proceed play media formats? never mind portability opposite platforms now. portability nice, nonetheless i can't it, i live but :-). thanks answers!

best proceed exercise add-on stops current xhtml?

for reason suspect rudimentary address. combined html method line breaks this: street: instance transport 1 city: vienna zip code: 1010 country: austria most that's totally okay, nonetheless infrequently i have grasp following output: street: instance transport 1 city: vienna zip code: 1010 country: austria my thoughts far: should current xhtml work reduce gracefully vital browsers using tags semantically repremand proceed strongly preferred because indicate two: i wish there's improved fortitude tables the problem unparalleled addresses - useful conditions too how grasp cost (using html and/or css)?

how run nunit programmatically

i have public references nunit creates unparalleled exam category unparalleled exam method. i am means record component route public (e.g. "c:...\test.dll"). i programmatically nunit run opposing assembly. so distant i have: var screen = new simpletestrunner(); runner.load(path); var outcome = runner.run(nulllistener.null); however, job runner.load(path) throws filenotfound exception. i by smoke-stack snippet problem nunit job assembly.load(path) down stack. i change route something "test, version=1.0.0.0, culture=neutral, publickeytoken=null" following i still same error. i have total an eventuality handler appdomain.current.assemblyresolve i manually solve form nonetheless handler never gets called. what tip removing assembly.load(...) work??

.net form post

i've got fan that, during testing, giving me opposing information. i don't cruise fibbing nonetheless some-more confused. so, i setup rudimentary auditing asp.net application. specifically, right any page called, i wish immediately insert querystring and/or form post information record table. only tender values. querystring easy. nonetheless there doesn't seem proceed tender form post'ed information but controlling binaryread, i that, following i screw myself out controlling request.form collection after on. does anyone know proceed around this? edit: tvanfosson suggested request.params. i looking something easier (like request.querystring, wholly post), nonetheless i speculation i only simply loop by params build twine name=value&, etc).

i need scaled settlement aliased c#

this competence an rare question, nonetheless i scale settlement c# i need pixelated anti-aliased. only mspaint scale. i wish images anti-alias default c#, else i altered something i didn't wish to. i've attempted enactment around graphics.interpolationmode nonetheless fitness there. i'm controlling bitmap vigilant reason settlement it's being assembled so: // tradition control binds image this.m_zoompanpicbox.image = new bitmap(szimagepath); and brief synapsis tradition control: class zoompanpicbox : scrollablecontrol { settlement m_image; boyant m_zoom = 1.0f; interpolationmode m_interpolationmode; ... //////////////////////////////////////////////////////// open zoompanpicbox() { //double aegis control this.setstyle(controlstyles.allpaintinginwmpaint | controlstyles.userpaint | controlstyles.resizeredraw | controlstyles.userpaint | controlstyles.doublebuffer, true); this.autoscroll=true; } /////////////////...

inserting information xml record php dom

i perplexing insert new information an existent xml file, nonetheless it's working. here's xml file: <list> <activity>swimming</activity> <activity>running</activity> <list> now, thought origination twin files: an index page, where displays what's record provides domain inserting new elements, php page insert information xml file. here's formula index.php: <html> <head><title>test</title></head> </head> <?php $xmldoc = new domdocument(); $xmldoc->load('sample.xml', libxml_noblanks); $activities = = $xmldoc->firstchild->firstchild; if($activities!=null){ while(activities!=null){ relate $activities->textcontent.'<br/>'; activities = activities->nextsibling. } } ?> <form name='input' action='insert.php' method='post'> insert activity: <input type='t...

how foster (reduce array points) kml?

i have identical problem . i need arrangement adult 1000 polygons an embedded google map. polygons sql database, i news any unparalleled kml record fly controlling tradition httphandler (in asp.net), . even (very fast) growth machine, takes while bucket adult even integrate dozen shapes. twin questions, really: what good plan digest markers instead overlays once i'm over certain wizz level? is there publicly accessible algorithm simplifying polygon (reducing array points) i'm arrangement some-more points clarity during certain wizz level?

sd tag performance

i am minute small application, minute jpeg images during consistent rate sd card. i select an ext3 filesystem, nonetheless same intrepidity celebrated an ext2 filesystem. my minute loop looks : get_image() fwrite() fsync() or : get_image() fopen() fwrite() fsync() fclose() i also arrangement timing statistics, i way someday blocked several seconds. the normal rate still good, since i keep incoming images fifo, following i settlement brief generation after such stall. know problem os associated sd tag itself ? how i pierce closer realtime ? i don't need cunning realtime, nonetheless being stalled several seconds acceptable. some pointing : yes required fsync after each file, since i wish settlement disk, user heart buffer. but fsyncing, i have many improved throughoutput, but still unsuited stall. i don't cruise aegis problem, given initial box happens after 50 mbytes have written. according male page, fsync here precisely pledge there information buffered. precision per normal ...

why can't i put non-static chapter exam apportionment while loop?

you can, obviously, put non-static chapter loop: for (int i = 0; ... and i've beheld same thing switch statements well: if ((int i = f()) != 0) ... switch (int ch = stream.get()) ... but i try same thing while loop: while ((int ch = stream.get()) != -1) ... the compiler (vc++ 9.0) does during all. is agreeable behavior? there reason it? edit : i found i this: while (int ch = stream.get() != -1) ... but since superiority rules, that's interpreted as: while (int ch = (stream.get() != -1)) ... which i want.

how should i configure jetty 7 pre3 seer jdbc source?

all things controlling underneath windows xp pro sp2/32-bit. i have downloaded jetty 7 pre3 http://dist.codehaus.org/jetty/jetty-7.0.0-prereleases/jetty-7.0.0pre3/jetty-assembly-7.0.0pre3.zip>dist.codehaus.org. i have extracted jetty c:\jetty-7.0.0pre3\ (so i have c:\jetty-7.0.0pre3\bin\ dirs) i have put webapp c:\jetty-7.0.0pre3\webapps\ i have resource-ref web.xml: <resource-ref> <description>dev datasource</description> <res-ref-name>jdbc/dev</res-ref-name> <res-type>javax.sql.datasource</res-type> <res-auth>container</res-auth> </resource-ref> and settlement jetty.xml: <array id="plusconfig" type="java.lang.string"> <item>org.mortbay.jetty.webapp.webinfconfiguration</item> <item>org.mortbay.jetty.plus.webapp.envconfiguration</item> <item>org.mortbay.jetty.plus.webapp.configuration</item> <item>org.mortbay.jetty.webapp.jettywebxmlconfigu...

drag dump winapi

i have pristine winapi concentration needs few new features. best implemented twin lists where drag-and-drop (multiple) elements between lists. new underline unparalleled singular dialog. what quickest proceed exercise this? a few ideas: pure winapi (is detectdrag) a removed mfc .net dll provides dialog embed microsoft webbrowser control jquery any options should avoided? any improved ideas? what quickest implement? any pointers started?

how i morally distance list latex?

this initial latex doc. controlling latex8.sty i'm perplexing consolidate 5 buttress table. i've commented out all nonetheless introdution table. i pdf shows introduction nonetheless table. any tips? \begin{tabular}{|ll||l|c|r|rr} mass&a1&a2&fprime1&fprime2\\ \hline 70g&0.988m/s^2&-2.79m/s^2&467.364n&424.02n\\ 80g&1.36m/s&-2.81m/s^2&3.84n&427.12n\\ 90g&1.70m/s^2&-2.74m/s^2&471.5n&416.48n\\ 100g&1.84m/s^2&-2.76m/s^2&491.12n&419.52n\\ 150g&3.11m/s^2&-2.88m/s^2&530.78n&437.76n\\\hline \end{tabular}

regex countenance index website vs. specific page

i'm looking regex grant me countenance presumably twine anxiety website address, specific page website. so match: http://google.com ftp://google.com http://google.com/ http://lots.of.subdomains.google.com but not: http://google.com/search.whatever ftp://google.com/search.whatever http://lots.of.subdomains.google.com/search.whatever any ideas? i can't definitely figure out hoop permitting / during finish url.

connection forcibly closed error

i'm controlling asp.net webclient.downloadfile(url) obtain images settlement servers several the clients. 'url' wholly simple, "". this works good 99% the clients. nonetheless giving me "an existent tie forcibly closed remote host". each time. i attempted controlling downloaddata() instead, same issue. i settlement around browser, nonetheless webclient. does anyone have any recommendations? david

tools support handling concentration graduation slight an craving environment

i am extraordinary others control formula graduation dev exam poke within an enterprise. what collection processes control "red tape", entry/exit criteria side things? my tide organization half stranded between tradition online forms form functionality paper formed dependencies quarrel documents, accumulate approvals reviews. all left digest managers hands lane submitted, upheld review, certified advise supervision there any roadblocks competence need defeat "overlooked" before an concentration promoted unbroken environment. a browser formed concentration ideal... whats out there? greatfully arrangement me googlefu improved mine.

does masterpage know page being displayed?

when i navigate website utilizing masterpages, does concentration know page i am on? so, does store an vigilant i access? the reason i am seeking i reinstate this: //masterpage <div id="nav_main"> <ul><asp:contentplaceholder id="navigation" runat="server"> </asp:contentplaceholder></ul> </div> //content page(s) <asp:content contentplaceholderid="navigation" id="thenav" runat="server"> <li><a href="default.aspx">home</a></li> <li id="current"><a href="faq.aspx">faq</a></li> <li><a href="videos.aspx">videos</a></li> <li><a href="#">button 4</a></li> <li><a href="#">button 5</a></li> </asp:content> with some-more glorious fortitude navigation, highlights couple page...

what programming libel model fits job?

as distant i know (not many i'll admit), now renouned programming paradigms vigilant oriented (java, c#, ruby) vs organic (f#). someone mostly informed initial paradigm, i have several questions: can programmer simply hang model his/her life? words, problems reduced nails hammer? if not, apparatus matched form task? instance: web-based vs desktop, formulating appreciative manageable interfaces, means smack information quickly, etc. have ever indispensable learn new paradigm? past twin jobs, workplaces mandatory java c#. there workplaces personally non-oo languages? obviously, there "best" languages, nonetheless i'm wondering presumably it's value investment appetite learn new paradigm. interjection advance!

how launch churned internet path-finder windows/tabs collection file?

i collection record launch twin removed programs following have management line window close. actually, clarify, i am rising internet path-finder twin opposite urls. so distant i have something this: start "~\iexplore.exe" "url1" start "~\iexplore.exe" "url2" what i instance internet path-finder wholly second url loaded. seems second replacing second. i seem remember syntax where i bucket new management line window pass management govern load, nonetheless can't reference. as second biased question: good anxiety url keep times need discerning collection file? edit: i have noted an answer, since does work. i have twin windows open, any url. (thanks!) humorous thing but /d proceed controlling uncanny syntax i opposite law formed presumably i have pre-existing internet path-finder instance open. if i i twin new tabs total for my twin urls (sweet!) if i wholly final add-on second url i upheld in.

prevent programmers meaningful passwords used during runtime

my concentration connects an ftp server username password. i emanate an encryption slight encrypt decrypt password, nonetheless anybody opening source formula encrypted evidence decrypt password. is there an easy proceed hinder each tellurian being meaningful whole evidence used an application? (i cruise it's fine churned know biased password.) edit: i know ftp secure. ideally, i'd technique work any conditions where username evidence mandatory (e.g. database connection).

how should section exam hashcode-equals contract?

in nutshell, hashcode contract, according java's object.hashcode(): the crush formula shouldn't change unless something inspiring equals() changes equals() implies crush codes == let's assume seductiveness essentially permanent information objects - information never changes after they're constructed, #1 feigned hold. leaves #2: problem simply confirming equals implies crush formula ==. obviously, can't exam each fathomable information vigilant unless set trivially small. so, best proceed section exam approaching locate common cases? since instances category immutable, there unparalleled ways make such an object; section exam should cover possible. off tip head, opening points constructors, deserialization, constructors subclasses (which should reducible constructor problem). [i'm going try answer possess doubt around research. quarrel smoke-stack ers acquire reserve apparatus process.] [this convenient oo languages, i'm adding tag.]

determine swf "debug" actor mode

is there proceed controlling peep (cs3+as3) establish published swf controlling debug actor flash's debug mode? i'm wakeful flex provides ability setup opposite build targets (release/debug) something config::debug #ifdef impression inclusion formula during accumulate time. i'm devising something system.isdebug() nonetheless can't anything. i wish since there's debug functionality app i definitely don't wish accessible prolongation environment.

custom filters/validators zend framework

i have zend horizon concentration structure below: /application /library /zend /core /filter /myfilter.php /validator /myvalidator.php i put tradition filters validators particular folders have hallowed automatically used. however, i can't figure out best accomplish this. i need fortitude work zend_filter_input fashion: $filters = array( 'month' => 'digits', 'account' => 'stringtrim', 'other' => 'myfilter' ); $validators = array( 'account' => 'alpha', 'other' => 'myvalidator' ); $inputfilter = new zend_filter_input($filters, $validators); what i already know: core_filter_myfilter implements zend_filter_interface obviously, filters validators already consolidate path.

what best proceed hoop change management?

my organization's sure digest went live monday. third here. i've here roughly week, i'm tasked formulating change supervision digest maintain concentration certification apportionment 2, embark "someday." we're microsoft mart nonetheless open-minded. i'm looking suggestions cm techniques especially tools assistance this. i'm informed itil i've deliberation the visualisation cm ask project, nonetheless admittedly lot smaller i'm used (< 100 users contra thousands). i'm accurately certain how, if, itil pared down such little project. maybe i'm pondering too small. how does your method control change during component level? does work you? improved? to offer clarify, anyone advise cm slight tool, maybe open source flexible worlds?

what suitable volume error-checking?

public vacant publicmethod(foobar foobar) { (foobar == null) pitch new argumentnullexception("foobar", "foobar can't null"); // record [added: interjection s.lott] _logger.log("publicmethod called foobar category " + foobar.classification); int movement = determineaction(); privatemethod(foobar, action); } private vacant privatemethod(foobar foobar, int action) { (foobar == null) pitch new argumentnullexception("foobar", "foobar can't null"); // line superfluous? /* something */ } is ok skip kind blunder checking private methods quarrel already checked open interface? wholly there's arrange rule-of-thumb by... edit: maybe argumentnullexception isn't such good instance since justification finished should check during both levels nonetheless relapse opposite blunder messages.

visual studio fortitude structure churned deployable projects

scenario: currently have unparalleled fortitude ancillary unparalleled deployable entity, winform/wpf client, fortitude covering settlement projects representing several layers (data, business, ui). introducing deployable entities such liteclient, server an ria. we deliberation restructure where have churned solutions, per deployable entity (client solution, server solution, ria fortitude etc), solutions share several projects, e.g information covering project. radically partitioned unparalleled fortitude permitted microsoft's p&p organisation () question: apart admin over approach, there any critical genuine universe gothas sharp us, adopt it.

reflection.net: bucket dependencies?

i try supplement an addons component windows.net concentration controlling reflection; nonetheless fails there addon dependencie. addon category have exercise an interface 'iaddon' have an lifeless constructor. main way bucket addon controlling reflection: assembly public = assembly.loadfile(@"c:\temp\testaddon\addon.dll"); type t = assembly.gettype("test.myaddon"); constructorinfo ctor = t.getconstructor(new type[] { }); iaddon addon= (iaddon) ctor.invoke(new object[] { }); addon.startaddon(); it works good addon dependencie. but addon anxiety an another dll (c:\temp\testaddon\mytools.dll) saved circuitously addon disk, fails: system.io.filenotfoundexception: bucket record public 'mytools.dll' the dependencies. i wants duplicate addons dll circuitously executable, i tell .net runtime hunt "c:\temp\testaddon\" any dependency? note adding assembly public = assembly.loadfile(@"c:\temp\testaddon\mytools.dll"); do change anything.

in wpf listbox some-more 1000 settlement equipment wizz images spin slow

i met problem deveoping imitation spectator application. i listbox arrangement images, contained observablecollection. i bond listbox's itemssource observablecollection. <datatemplate datatype="{x:type modeldata:imageinfo}"> <image margin="6" source="{binding thumbnail}" width="{binding zoombarwidth.width, source={staticresource zoombarmanager}}" height="{binding zoombarwidth.width, source={staticresource zoombarmanager}}"/> </datatemplate> <grid datacontext="{staticresource imageinfolder}"> <scrollviewer verticalscrollbarvisibility="auto" horizontalscrollbarvisibility="disabled"> <listbox name="photoslistbox" issynchronizedwithcurrentitem="true" style="{staticresource photolistboxstyle}" margin="5" ...

change thesis / css formed user

i am building product eventually going white-label. right i am perplexing figure out best proceed foster charge programmatically user transform simple settlement site (ie header color, etc) around profile/settings form. requirements: user transform trademark (this complete) user transform simple settlement elements (based css), ie header color, footer color, sidebar tone - simple css overrides we don't wish asp.net themes/skins since requires storing stationary themes internal record system. css overrule bottom impression store database. our initial digest store css rudimentary varchar domain database css out master page pre-init eventuality controlling "!" overrule bottom styles. best solution? not, have finished accomplish functionality/

object-to-triple mapping controlling allegrograph rdf store?

my digest building java web concentration tip allegrograph rdf store. i good fortitude map between triples out store the domain objects. i have looked , an object/triple mapping api being grown idea hibernate. problem don't now have connector allegrograph. has anyone adult good amour object/triple mapping java, light unparalleled api support out there? emanate creates doubt some-more challenging graphic sql, sparql customary wholly supports review operations, writes finished around rdf store's exclusive api, i'd unequivocally summary divided those sum the application.

which best rcp platform

i am building desktop application. the research says improved built rcp. should i obscure netbeans height build concentration . factors cruise are performance look feel popularity among aim users (developers/testers) license (has foss) the concentration carrying things calm editor, grid views, retard diagrams graph visualizations. i already have trust netbeans development, nonetheless training obscure won't hurt. any options acquire too.

skipping 'compressresources' build step xcode iphone apps

is illusory set an iphone xcode digest skip 'compressresources' build step? specifically, i wish skip theatre where runs pngcrush .png files, don't tarry trust form app read. edit: chronicle pngcrush used creates png files enclose non-standard 'mandatory, private' brick definitely prevents decoding. i've run-down png reader hoop files, nonetheless i'd still per-project slight skipping step. side effects pngcrush doesn't save colour value pristine pixels, alpha-ed textures arrangement fringing during smaller mip levels. the iphone png format described here: . short, skip cgbi chunk skip zlib headers swap bgr rgb channel order edit: appears also premultiplies alpha, so: divide alpha

tools/components building counsel application

we conceptualizing counsel concentration following features the users means name questions set predefined questions. each doubt question form tangible dictates form answer (multiple choice, db feeling up, giveaway calm etc) the user emanate hierarchy sections churned questions any section. the responses counsel stored an sql server database. there also requirement beget an cost request any counsel response. we formulation exercise concentration controlling asp.net. i am looking suggestions assistance us devaluate growth effort. there any commercial/open source concentration customize the needs? there any processed components helps origination enterprising asp.net pages? i am wholly prying concentration i horde locally, integrated an existent application.

ways claim expressions during build c

i'm tidying adult comparison formula uses 'magic numbers' over place set hardware registers, i constants instead numbers formula rather some-more smooth (in fact map names/values used request registers). however, i'm concerned volume changes i competence smack incantation numbers. here simplified instance (the register set some-more complex): const brief mode0 = 0; const brief mode1 = 1; const brief mode2 = 2; const brief state0 = 0; const brief state1 = 4; const brief state2 = 8; so instead : set_register(5); we have: set_register(state1|mode1); what i'm looking build time chronicle of: assert(5==(state1|mode1)); update @christian, interjection discerning response, i'm prying c / non-boost sourroundings answer too since driver/kernel code.

how i set cookies outmost domains inside iframes safari?

from apple safari ships conservative cookie slight boundary cookie writes wholly pages chosen ("navigated to") user. by default safari wholly allows cookies sites navigate directly. (i.e. click links url domainname). this means bucket page your possess site an iframe page another site, site means set cookies. (for instance, ticketshop). shortly have visited domain directly, site means opening change the possess cookies. without carrying opening formula site, i user-experience inobtrusive possible? is there (javascript?) proceed check site's cookies are already set, accordingly, arrangement proceed couple site first, needed? update: the html5 underline 'window.postmessage' seems good solution. there jquery libraries competence help, congruous many new browsers. in essence, iframe request sends messages, json, thru window element. the unequivocally good , daepark, i got working. and another , ben alman i found, nonetheless haven't tested.

php opening itunes tags an rss feed

i need opening itunes tags an rss feed controlling php. i've used simplepie before podcast feeds, nonetheless i'm certain itunes tags controlling it. there proceed simplepie there improved way? okay i attempted rudimentary xml. all (the formula below) seems work $feed = simplexml_load_file('http://sbhosting.com/feed/'); $channel = $feed->channel; $channel_itunes = $channel->children('http://www.itunes.com/dtds/podcast-1.0.dtd'); $summary = $channel_itunes->summary; $subtitle = $channel_itunes->subtitle; $category = $channel_itunes->category; $owner = $channel_itunes->owner->name; now i need itunes categories. seem represented several ways. in box i follow xml: <itunes:category text="technology"/> <itunes:category text="technology"> <itunes:category text="software how-to"/> </itunes:category> i design means problem something this: $category_text = $channel_itunes->category['text...

how settlement high opening grid vs 2005(specifically c#)

i need build high opening winforms information grid controlling visible studio 2005, i'm during detriment where start. i've build excess information grid applications, nonetheless zero those unequivocally good information constantly refreshing. the grid going roughly 100 rows 40 columns, any cave grid going transform between 1 2 times second(some cells presumably more). me, biggest obstacle out box information grid, repainting isn't unequivocally efficient. couple caveats 1) third jubilee vendors. grid patience the applications, while xceed syncfusion whatever competence us adult controlling faster, we'd impact the prerequisites hosed. i'd rather put additional work adult front, have grid does accurately need. 2) i have opening visible studio 2008, many improved start 2008, following i that. the tossup, i'd hang 2005. so whats best proceed here?

does anyone know php horizon hoop persisting encouragement flash/flex content?

ok, i'm controlling reign "progressive enhancement" kind loosely here nonetheless fundamentally i have flash-based website supports low fasten loads calm boldly - i'd yield swap calm (text) those presumably carrying peep hunt engine bots. so, user peep navigate to: http://www.samplesite.com/#specific_page and peep site navigate " specific_page ." those but peep " specific_page " rendered calm choice calm section. basically, i php/mysql emanate backend hoop given swf also controlling enterprising data. doubt is, does something out there does already exist?

how i supplement sqlparameters but meaningful name / type?

i am formulating db coupling am need adding sql paramters stament however i know parameter names type, done? i have seen libraries this... i only wish method values mapped stored procedure...i guess following formula work: public datatable executedatatable(string storedprocname, params object[] args) { sqlcommand cmd = new sqlcommand(storedprocname, conn); cmd.commandtype = commandtype.storedprocedure; // inserting params does work... (int i = 0; i < args.length; i++) { cmd.parameters.insert(i, args[0]); } datatable dt = new datatable(); dt.load(cmd.executereader()); relapse dt; } any ideas accomplish this? note: i know there libraries such craving library already does this, nonetheless i'm conditions where won't help... thanks.