text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I know WCF supports many WS-\* protocols but WS-Eventing does seem to be listed. I do know that WCF has a pub/sub model, but is it WS-Eventing compliant? I seem to remember reading about this on CodeProject a while ago. Sorry I can't help more, but [this is the article](http://www.codeproject.com/KB/WCF/WSEventing.a...
[ 0.45676693320274353, 0.11925192177295685, -0.0563613660633564, -0.2137741893529892, -0.3369583487510681, -0.3523465692996979, 0.37468039989471436, -0.038883231580257416, -0.1567751169204712, -0.41255006194114685, -0.35037195682525635, 0.04309071600437164, -0.5510644316673279, 0.04406361654...
I've just read up on `Thread.IsBackground` and if I understand it correctly, when it's set to `false` the Thread is a foreground thread which means it should stay alive until it has finished working even though the app have been exited out. Now I tested this with a winform app and it works as expected but when used wit...
[ 0.24986106157302856, 0.04106677323579788, 0.39490142464637756, -0.07615797966718674, 0.27198031544685364, -0.18906612694263458, 0.5794004201889038, -0.028638551011681557, -0.09985903650522232, -0.5431675314903259, -0.0674455314874649, 0.5255942940711975, -0.08715076744556427, 0.46063256263...
any magic to keep the thread alive until some sort of explicit exit. To quote the [Thread.IsBackground Property MSDN](http://msdn.microsoft.com/en-us/library/system.threading.thread.isbackground.aspx "MSDN - Thread.IsBackground Property (System.Threading)") (emphasis mine): > A thread is either a background thread or...
[ 0.1632412225008011, -0.1001877412199974, 0.727432131767273, 0.159328430891037, 0.06517525017261505, -0.21835282444953918, 0.5398358702659607, -0.025446416810154915, -0.5330343246459961, -0.4711134433746338, -0.3315117061138153, 0.2653418481349945, -0.15233153104782104, 0.38041573762893677,...
you ask it to stop via a flag or similar. Windows Forms applications have this built in because of their message pump (I believe).
[ 0.4598903954029083, -0.34823691844940186, 0.2348000407218933, 0.15110257267951965, -0.01676073856651783, 0.07327471673488617, 0.3218638300895691, 0.038377758115530014, -0.14201371371746063, -0.44788217544555664, -0.09925249963998795, 0.29372090101242065, -0.39431431889533997, -0.2780189514...
Has anyone out there got a good set of instructions for building/compiling Ruby from source of windows XP ? <http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/184380> I normally get a binary installable for windows.. much faster if you just need Ruby installed. But you may be modifying ruby source.. anyways....
[ 0.42594704031944275, 0.15869460999965668, -0.22135652601718903, 0.3137194812297821, -0.26196935772895813, 0.013847442343831062, 0.8196374773979187, 0.06661191582679749, -0.2594354748725891, -0.4040798842906952, 0.18730680644512177, 0.7813954949378967, -0.024230269715189934, 0.0209024660289...
I want to debug an application in Visual Studio but I ONLY have the source code for 1 class. I only need to step through a single function in that file, but I don't understand what I need to do it. I think the steps are normally something like this: 1. Open a file in VS 2. Load in the "symbols" (.PDB file) 3. Attach t...
[ 0.6704968810081482, 0.13535621762275696, 0.2932470440864563, 0.019928185269236565, -0.08441918343305588, -0.20635361969470978, 0.44610413908958435, -0.2975213825702667, -0.0980018675327301, -0.6991171836853027, -0.012556835077702999, 0.5873653888702393, -0.2679135501384735, -0.036565959453...
\*.pdb files (step 2 from your post) These files contain mapping between source code and compiled assembly. So your step are correct. If your source file has differences with original file, set check mark "Allow the source code to be different from the original version" in BP's properties dialog. [Breakpoints and Trac...
[ 0.582391619682312, 0.06820062547922134, 0.39780229330062866, -0.09810549020767212, 0.0927562490105629, 0.011650865897536278, 0.10976938158273697, -0.5043359994888306, -0.34750792384147644, -0.8596464991569519, -0.21792902052402496, 0.3561573028564453, -0.30761799216270447, 0.03497764468193...
I am wondering if it is possible to extract the index position in a given string where a Regex failed when trying to match it? For example, if my regex was "abc" and I tried to match that with "abd" the match would fail at index 2. Edit for clarification. The reason I need this is to allow me to simplify the parsing...
[ 0.08081172406673431, 0.09621748328208923, -0.012735324911773205, 0.1752026230096817, -0.26252347230911255, 0.13008370995521545, 0.2015823870897293, -0.12169251590967178, -0.14098982512950897, -0.8360388875007629, 0.23829060792922974, 0.24012088775634766, -0.21189646422863007, 0.24590282142...
works very well. For example: The tokenizer would produce the following tokens given the following input = "INP :x:" : ``` Token.OPCODE, Token.WHITESPACE, Token.LABEL, Token.EOL ``` These tokens are then analysed to ensure they conform to a syntax for a given statement. Currently this is done using IF statements ...
[ -0.16512922942638397, 0.08029238879680634, -0.10935455560684204, -0.032808851450681686, -0.34967517852783203, 0.13687077164649963, 0.4104577600955963, -0.2077460139989853, -0.03713570162653923, -0.707911491394043, -0.07063861936330795, 0.567927360534668, -0.2561473846435547, -0.07193513959...
therefore would at least like to inform the user of WHERE the error occurred. I agree with Colin Younger, I don't think it is possible with the existing Regex class. However, I think it is doable if you are willing to sweat a little: 1. Get the Regex class source code (e.g. <http://www.codeplex.com/NetMassDownloader> ...
[ 0.5871222019195557, 0.13047827780246735, -0.326678603887558, 0.04061327502131462, -0.19074997305870056, -0.4439818263053894, 0.5879083275794983, -0.10875050723552704, 0.04943620786070824, -0.7034196257591248, -0.0009784505236893892, 0.7405434846878052, -0.3665793836116791, -0.0368327014148...
They both seem to be sending data to the server inside the body, so what makes them different? **HTTP PUT:** PUT puts a file or resource at a specific URI, and exactly at that URI. If there's already a file or resource at that URI, PUT replaces that file or resource. If there is no file or resource there, PUT creates ...
[ 0.4387716054916382, -0.1683678925037384, 0.12747091054916382, -0.16362006962299347, -0.19355431199073792, 0.122479148209095, 0.008640682324767113, -0.17795085906982422, 0.04941336438059807, -0.7537943720817566, -0.2332310676574707, -0.08225823938846588, -0.3711960017681122, 0.3972277045249...
determine what to do with the data in the context of the specified resource. The POST method is not [idempotent](https://www.rfc-editor.org/rfc/rfc9110.html#name-idempotent-methods), however POST responses *are* cacheable so long as the server sets the appropriate Cache-Control and Expires headers. The official HTTP R...
[ 0.2816644012928009, -0.022131280973553658, 0.1646343171596527, -0.007093481719493866, -0.17507067322731018, 0.03137579560279846, 0.1528778225183487, -0.10180852562189102, -0.08264607936143875, -0.6823917627334595, -0.5931874513626099, -0.09803573787212372, -0.3206755220890045, 0.3638857305...
The fundamental difference between the > POST and PUT requests is reflected in > the different meaning of the > Request-URI. The URI in a POST request > identifies the resource that will > handle the enclosed entity. That > resource might be a data-accepting > process, a gateway to some other > protocol, or a separate ...
[ -0.0422855019569397, -0.125881165266037, 0.4393662214279175, 0.1331082284450531, -0.25496533513069153, 0.1671450436115265, -0.049333155155181885, -0.1682475507259369, 0.2248728722333908, -0.7745547890663147, -0.37486881017684937, 0.1898638755083084, -0.3305956721305847, 0.373470664024353, ...
to a > different URI, it MUST send a 301 (Moved Permanently) response; the user agent MAY then make > its own decision regarding whether or not to redirect the request. Additionally, and a bit more concisely, [RFC 7231 Section 4.3.4 PUT](https://www.rfc-editor.org/rfc/rfc7231#section-4.3.4) states (emphasis added), >...
[ 0.24624142050743103, -0.2764391303062439, 0.280957967042923, -0.23595193028450012, -0.1299784630537033, -0.017742475494742393, 0.1853780895471573, -0.21821565926074982, 0.019091924652457237, -0.8174617290496826, -0.4345574975013733, 0.45146071910858154, -0.1124415248632431, 0.1172363907098...
verbs/methods. So for example you would only use PUT when you want to create a resource at that exact location. And you would never use GET to create or modify a resource.
[ 0.18403655290603638, -0.13415199518203735, -0.25940802693367004, -0.017643434926867485, -0.4940544068813324, 0.46285685896873474, 0.5962554216384888, 0.19305665791034698, -0.2829552888870239, -0.5611217021942139, -0.21283695101737976, 0.15544132888317108, 0.15071344375610352, -0.2202011197...
What I'm trying to do here is get the headers of a given URL so I can determine the MIME type. I want to be able to see if `http://somedomain/foo/` will return an HTML document or a JPEG image for example. Thus, I need to figure out how to send a HEAD request so that I can read the MIME type without having to download ...
[ 0.6364794373512268, 0.14790235459804535, 0.7285658121109009, 0.04841785877943039, -0.278929740190506, -0.32623961567878723, 0.20030619204044342, 0.0009090922540053725, -0.1795276552438736, -0.5351345539093018, -0.22419790923595428, 0.34291398525238037, -0.19487009942531586, 0.0669837221503...
httplib.HTTPConnection("www.google.com") >>> conn.request("HEAD", "/index.html") >>> res = conn.getresponse() >>> print res.status, res.reason 200 OK >>> print res.getheaders() [('content-length', '0'), ('expires', '-1'), ('server', 'gws'), ('cache-control', 'private, max-age=0'), ('date', 'Sat, 20 Sep 2008 06:43:36 GM...
[ -0.13986040651798248, -0.19938534498214722, 0.7538530230522156, 0.15579237043857574, -0.14939726889133453, -0.06361702084541321, 0.06947260349988937, -0.07322213798761368, -0.16084496676921844, -0.7347483038902283, -0.4704413414001465, 0.06160441040992737, -0.1003655344247818, 0.2615503370...
I have a 3d object that I wish to be able to rotate around in 3d. The easiest way is to directly translate X and Y mouse motion to rotation about the Y and X axes, but if there is some rotation along both axes, the way the model rotates becomes highly counterintuitive (i.e. if you flip the object 180 degrees about one ...
[ 0.5343988537788391, 0.2502652406692505, 0.4489933252334595, 0.059301260858774185, -0.09025508165359497, 0.16540640592575073, -0.11081744730472565, -0.13179923593997955, -0.10752610117197037, -0.514031171798706, 0.28084394335746765, 0.5420333743095398, -0.009990930557250977, 0.4371137619018...
rotate it along the same axes for each mouse drag, but I'm concerned that that would quickly have precision issues. Create an accumulator matrix and initialize it with the identity. Each frame, apply that to your modelview/world matrix state before drawing the object. Upon mouse motion, construct a rotation matrix ab...
[ 0.06509218364953995, -0.23729786276817322, 0.8992531299591064, 0.08854200690984726, -0.06592435389757156, 0.34903621673583984, -0.45872610807418823, -0.431254118680954, -0.11509276926517487, -0.6667743921279907, 0.35578563809394836, 0.6305965185165405, -0.34295982122421265, 0.0451201088726...
right; this will look good only for small incremental changes. If you drag it quickly on a diagonal, it won't rotate quite the way you expect.
[ 0.46429941058158875, -0.28644290566444397, 0.5432687997817993, -0.11611299961805344, 0.15586736798286438, 0.19014650583267212, -0.3787294924259186, 0.055798668414354324, -0.3349684178829193, -0.49499043822288513, 0.268006294965744, 0.38984444737434387, 0.2254578322172165, 0.083650127053260...
There have been some questions about whether or not JavaScript is an object-oriented language. Even a statement, "just because a language has objects doesn't make it OO." Is JavaScript an object-oriented language? IMO (and it is only an opinion) **the** key characteristic of an object orientated language would be that...
[ -0.1615808755159378, -0.008819332346320152, 0.010107944719493389, -0.11257363110780716, -0.4672906994819641, -0.1442526876926422, 0.26022645831108093, -0.023219658061861992, -0.39312249422073364, -0.4963686466217041, -0.383520245552063, 0.36913684010505676, -0.578061580657959, -0.231692165...
oriented. Javascript does provide a fairly easy means to inherit implementation via prototyping but this is at the expense of encapsulation. So if your criteria for object orientation is the classic threesome of polymorphism, encapsulation and inheritance then Javascript doesn't pass. **Edit**: The supplementary que...
[ 0.008607873693108559, -0.2330252230167389, 0.06284589320421219, 0.010223147459328175, -0.2664608955383301, -0.15911245346069336, 0.07017940282821655, -0.36102357506752014, 0.15985135734081268, -0.5952051877975464, 0.03224027901887894, 0.8107874989509583, -0.5275343656539917, -0.11214967817...
a way entirely controlled by code that is part of the class. Now consider a prototypal approach to the same class:- ``` function MyClass() { var _value = 1; } MyClass.prototype.getValue = function() { return _value; } ``` Well this is broken. Since the function assigned to getValue is no longer in scope with \_val...
[ -0.11861088871955872, 0.01817520149052143, 0.0835619792342186, -0.0799044817686081, -0.07438034564256668, -0.3924013674259186, 0.508043646812439, -0.05111885443329811, -0.1099676713347435, -0.6780565977096558, -0.2942236065864563, 0.37380048632621765, -0.6132633090019226, 0.157328352332115...
I can implement it in Javascript.
[ 0.4986361265182495, 0.20689475536346436, 0.016409872099757195, -0.12938092648983002, -0.057949066162109375, -0.20240694284439087, 0.07684185355901718, 0.20061840116977692, 0.1784980297088623, -0.7478708028793335, -0.0411796011030674, 0.48045313358306885, -0.22784395515918732, -0.1258617192...
I would like to create an XML-based website. I want to use XML files as datasources since it is a kind of online directory site. Can someone please give me a starting point? Are there any good online resources that I can refer to? I am pretty comfortable with ASP and JavaScript. If you cannot or don't wish to store you...
[ 0.42604872584342957, -0.11927732825279236, 0.26673680543899536, 0.3466707170009613, -0.037021029740571976, -0.3115963339805603, -0.08236127346754074, 0.4058399200439453, -0.060055702924728394, -0.8041554093360901, -0.1442183256149292, 0.39376965165138245, -0.2587408423423767, 0.18776953220...
speed and flexibility you won't find in many other solutions. It will also ensure you output standards compliant (X)HTML as it's impossible to do otherwise (well, not without deliberately going out of your way to botch it). MSXML allows you to do XSL transformations for use in Classic ASP - see [this page](http://www....
[ -0.0785769447684288, -0.49414587020874023, 0.6886926889419556, 0.18449245393276215, -0.12972351908683777, -0.21969909965991974, -0.12111619859933853, -0.063962921500206, -0.646181583404541, -0.6277642250061035, -0.27879032492637634, 0.44386592507362366, -0.140682652592659, -0.0616831593215...
How do you unit test a large MFC UI application? We have a few large MFC applications that have been in development for many years, we use some standard automated QA tools to run basic scripts to check fundamentals, file open etc. These are run by the QA group post the daily build. But we would like to introduce proc...
[ 0.754808783531189, -0.06950455904006958, 0.001238312921486795, 0.057344287633895874, 0.06411352753639221, -0.1674097329378128, 0.08013059198856354, -0.4701829254627228, 0.14372964203357697, -0.3633005619049072, -0.1410703808069229, 0.5304811596870422, 0.1967017948627472, -0.271241158246994...
builds, are there any standard toolkits for this. Environment is C++/C/FORTRAN, MSVC 2005, Intel FORTRAN 9.1, Windows XP/Vista x86 & x64. It depends on how the App is structured. If logic and GUI code is separated (MVC) then testing the logic is easy. Take a look at Michael Feathers ["Humble Dialog Box"](https://web.a...
[ 0.4296436607837677, 0.42997971177101135, 0.17357143759727478, 0.11957624554634094, -0.12870551645755768, 0.13263142108917236, 0.3850417137145996, -0.3979320228099823, 0.1464223712682724, -0.27424341440200806, 0.10955275595188141, 0.7216269969940186, -0.10170549899339676, -0.384780287742614...
contents of a listbox when the user clicks a button and you want to make sure the listbox contains the right stuff after the click. 1. Refactor so that there is a separate list with the items for the listbox to show. The items are stored in the list and are not extracted from whereever your data comes from. The code t...
[ 0.0602569580078125, -0.38196516036987305, 0.6121770739555359, 0.19566550850868225, 0.029854057356715202, -0.19987539947032928, 0.07402288913726807, -0.2095278948545456, -0.474845290184021, -0.5447151064872742, 0.028975998982787132, 0.6005712151527405, -0.4595150351524353, 0.234047889709472...
the listbox or anythings else. 3. MyController::ButtonWasClicked() does whats need to be done for the intended logic, prepares the item list and tells the control to update. For that to work you need to decouple the controller and the control by creating a interface (pure virtual class) for the control. The controller ...
[ 0.240277498960495, -0.08913703262805939, 0.5351428985595703, 0.19581660628318787, -0.23640142381191254, -0.07911015301942825, 0.4173210561275482, -0.19544775784015656, -0.10430285334587097, -0.5399872660636902, 0.01662450097501278, 0.8285495042800903, -0.3982641398906708, -0.04238822311162...
Michaels article. Twice. And again after that. (Note to self: must learn not to blather that much)
[ 0.2220720797777176, -0.037260595709085464, 0.259156733751297, -0.11284215748310089, -0.16000717878341675, -0.29448407888412476, 0.37248700857162476, 0.253663033246994, -0.009676353074610233, -0.08161948621273041, 0.15682344138622284, 0.4673343300819397, 0.3104236423969269, 0.23115728795528...
How can I remove those annoying Mac OS X `.DS_Store` files from a Git repository? Remove existing `.DS_Store` files from the repository: ``` find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch ``` Add this line: ``` .DS_Store ``` to the file `.gitignore`, which can be found at the top level of yo...
[ -0.16183330118656158, 0.17236191034317017, 0.6566606163978577, 0.07168717682361603, -0.011758780106902122, 0.07433035224676132, 0.5538380146026611, -0.2667350172996521, -0.24237069487571716, -0.6531460285186768, -0.4830922782421112, 0.7933779358863831, -0.44945237040519714, 0.3431043624877...
After hitting a few StackOverflowExceptions in .NET I noticed they completely bypass the unhandled exception handlers that .NET offers (Application.ThreadException / AppDomain.UnhandledException). This is very disturbing since we have critical cleanup code in those exception handlers. Is there any way to overcome this...
[ -0.08535730838775635, -0.15833796560764313, 0.45779740810394287, 0.09113164991140366, 0.06598386913537979, -0.08363059163093567, 0.41365042328834534, 0.13351772725582123, -0.3729601204395294, -0.553157389163971, -0.08094733208417892, 0.3758432865142822, -0.3788321614265442, 0.1046275123953...
So everything in a finally-block can't be aborted by a ThreadAbortException. To avoid an OutOfMemoryException, you have only one possibility: Do not allocate anything on the Heap. This means that you're not allowed to create any new reference-types. To overcome the StackOverflowException, you need some help from the ...
[ 0.04234755411744118, -0.23407511413097382, 0.25865426659584045, 0.02916393056511879, -0.12908731400966644, 0.06961401551961899, 0.39675939083099365, -0.13029059767723083, -0.43001899123191833, -0.5397117733955383, -0.1881476193666458, -0.21790766716003418, -0.3629377782344818, 0.1167758703...
safe form of a try/finally. * A try/finally block preceded immediately by a call to RuntimeHelpers.PrepareConstrainedRegions. The try block is not constrained, but all catch, finally, and fault blocks for that try are. * As a critical finalizer - any subclass of CriticalFinalizerObject has a finalizer that is eagerly p...
[ -0.04625330865383148, -0.2688508927822113, -0.011965634301304817, 0.04158484563231468, 0.13456991314888, -0.17655432224273682, 0.5377336144447327, -0.10402397811412811, -0.10541319847106934, -0.6512501835823059, -0.5226133465766907, 0.2681340277194977, -0.3224469721317291, -0.0169350244104...
Duffy's Weblog about [Atomicity and asynchronous exception failures](http://www.bluebytesoftware.com/blog/PermaLink.aspx?guid=c1898a31-a0aa-40af-871c-7847d98f1641) where he gives a very good overview over asynchronous exceptions and robustness in the .net Framework.
[ -0.29875582456588745, 0.4298950433731079, -0.4148585796356201, -0.23208856582641602, 0.07740791141986847, 0.28012675046920776, 0.31662461161613464, -0.012369094416499138, -0.3080720901489258, -0.18992091715335846, -0.16199932992458344, -0.01246782299131155, -0.025074012577533722, -0.018625...
From my understanding the XMPP protocol is based on an always-on connection where you have no, immediate, indication of when an XML message ends. This means you have to evaluate the stream as it comes. This also means that, probably, you have to deal with asynchronous connections since the socket can block in the midd...
[ 0.4103873670101166, -0.13090002536773682, 0.11749514937400818, 0.0725640133023262, -0.4690001308917999, -0.07352898269891739, -0.000050001617637462914, -0.17256784439086914, -0.4060021936893463, -0.4913211762905121, -0.23678435385227203, 0.43470367789268494, -0.29303714632987976, -0.008005...
must in that case, to avoid one thread per connection. Otherwise, you just need an XML parser that can deal with a chunk of bytes at a time. [Expat](http://expat.sourceforge.net/) is the canonical example; if you're in Java, try [XP](http://www.jclark.com/xml/xp/). These types of XML parsers will fire events as possib...
[ -0.04723203927278519, -0.33961042761802673, 0.5216759443283081, 0.17018640041351318, -0.28583118319511414, -0.1824011504650116, 0.4606130123138428, -0.14096859097480774, -0.17758075892925262, -0.6780210137367249, -0.37453073263168335, 0.3900243937969208, -0.3037133812904358, -0.01642273180...
switch on token type: START_TAG: elem = create element from parser state if stanza is not null: add elem as child of stanza stanza = elem END_TAG: parent = parent of stanza if parent is not null: fire OnStanza event
[ -0.8820424675941467, -0.6803571581840515, 0.33769768476486206, 0.10690657794475555, -0.20894169807434082, -0.03963581100106239, 0.38345128297805786, -0.5485108494758606, 0.03437681496143341, -0.44523486495018005, -0.4294142425060272, 0.1634501814842224, -0.06351947784423828, 0.115089491009...
stanza = parent ``` This approach should work with an event-based or pull parser. It only requires holding on to one pointer worth of state. Obviously, you'll also need to handle attributes, character data, entity references (like &amp; and the like), and special-purpose the stream:stream tag, but this should get you...
[ -0.3027057349681854, -0.5921001434326172, 0.4144401252269745, 0.11293448507785797, -0.09751735627651215, -0.03608646243810654, 0.319121778011322, -0.20379780232906342, 0.22638362646102905, -0.7825295329093933, -0.0036443218123167753, 0.37787342071533203, -0.14211216568946838, -0.0794479846...
I'm wondering how do you deal with displaying release revision number when pushing live new versions of your app? You can use `$Rev$` in a file to get latest revision, but only after you update the file. What if I want to update a string in one file every time I change any file in the repository/directory? Is there ...
[ 0.593322217464447, 0.08296577632427216, 0.5315792560577393, 0.17380115389823914, -0.03516242653131485, 0.051120903342962265, 0.22917208075523376, 0.11391663551330566, -0.5645021200180054, -0.5984277129173279, 0.1901904046535492, 0.7880401015281677, -0.19731132686138153, 0.3487396538257599,...
I have [Laconica](http://laconi.ca/trac/) (self hosted [twitter](http://twitter.com/home)) configured on my local intranet and would like to integrate the public stream into SharePoint site with a web part. How can I do this? You can point an RSS Viewer web part at the laconi.ca public stream RSS feed and use this XSLT...
[ -0.07299581915140152, -0.07942760735750198, 0.4629490077495575, -0.08675064146518707, -0.05262007191777229, 0.11698707193136215, 0.23000948131084442, -0.13554932177066803, -0.6107026934623718, -0.5268964171409607, 0.03561554476618767, 0.3157899081707001, -0.24042828381061554, 0.39762261509...
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:rssFeed="urn:schemas-microsoft-com:sharepoint:RSSAggregatorWebPart" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/element...
[ -0.10601479560136795, -0.10385240614414215, 0.6794657707214355, -0.12843483686447144, -0.5125093460083008, 0.08266983926296234, 0.043021757155656815, -0.34219661355018616, -0.47388583421707153, -0.27881985902786255, -0.4534222483634949, 0.36516857147216797, -0.3820209205150604, 0.239445134...
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom2="http://purl.org/atom/ns#" xmlns:ddwrt2="urn:frontpage:internal" xmlns:laconica="http://laconi.ca/ont/"> <xsl:param name="rss_FeedLimit">5</xsl:par...
[ 0.029332807287573814, -0.11152137815952301, 0.5134463906288147, -0.3422889709472656, -0.8102014660835266, 0.3548532724380493, 0.2325195074081421, -0.8967953324317932, -0.40457165241241455, -0.3563562035560608, -0.3165808618068695, 0.29554474353790283, -0.24089492857456207, 0.04913178458809...
<xsl:variable name="Rows" select="rss:item"/> <xsl:variable name="RowCount" select="count($Rows)"/> <div class="slm-layout-main" > <xsl:call-template name="RDFMainTemplate.body"> <xsl:with-param name="Rows" select="$Rows"/> <xsl:with-param name="RowCount" select="count($Rows)"/> </xs...
[ -0.2929095923900604, 0.09520909190177917, 0.630529522895813, -0.27555322647094727, -0.5544503927230835, 0.3129895329475403, -0.14159153401851654, -0.9845340251922607, -0.5837262272834778, -0.26204758882522583, -0.12989382445812225, 0.21308594942092896, -0.2308637648820877, 0.01512688584625...
<xsl:variable name="CurrentElement" select="concat($RssFeedLink,$CurPosition)" /> <xsl:if test="($CurPosition &lt;= $rss_FeedLimit)"> <xsl:element name="div"> <xsl:if test="($CurPosition mod 2 = 1)"> <xsl:attribute name="style"><![CDATA[background-color:#F9F9F9;]]></xsl:attribute> ...
[ 0.02442549355328083, -0.28397446870803833, 0.5990254878997803, -0.16785195469856262, 0.15773427486419678, -0.17792224884033203, -0.06633604317903519, -0.38512012362480164, -0.18913151323795319, -0.5115561485290527, -0.2061532884836197, 0.39846333861351013, -0.31803202629089355, -0.03759344...
<xsl:attribute name="style"><![CDATA[margin:0px;padding:0px;border-spacing:0px;background-color:transparent;]]></xsl:attribute> <xsl:element name="tr"> <xsl:element name="td"> <xsl:attribute name="style"><![CDATA[vertical-align:top;padding:0px;background-color:transparent;]]></...
[ -0.3001560568809509, -0.19224900007247925, 0.4749966263771057, -0.020552441477775574, -0.28304097056388855, 0.1409340351819992, -0.13895325362682343, -0.5234168171882629, -0.2539897561073303, -0.4878997206687927, -0.26728492975234985, 0.4812181890010834, -0.27176669239997864, -0.1646550744...
<xsl:attribute name="src"><xsl:value-of select="laconica:postIcon/@rdf:resource"/></xsl:attribute> <xsl:attribute name="style"><![CDATA[margin:3px;height:48px;width:48px;]]></xsl:attribute> </xsl:element> </xsl:element> <xsl:element name="td"> ...
[ -0.029905974864959717, -0.1962149292230606, 0.312076598405838, 0.06195247918367386, -0.2686903476715088, 0.09960814565420151, -0.1814383715391159, -0.6544912457466125, -0.1581851840019226, -0.3726867139339447, -0.11434855312108994, 0.45648643374443054, 0.00042774638859555125, -0.0985993221...
<div> <strong><xsl:value-of select="substring-before(rss:title, ':')"/></strong> </div> <div style="width:300px;overflow-x:hidden;"> <div> <xsl:value-of select="substring-after(rss:title, ':')"/>
[ -0.2881336212158203, -0.33314457535743713, 0.4858490824699402, -0.33179205656051636, -0.06930939853191376, -0.03109869919717312, 0.1862269788980484, -0.43756726384162903, -0.23003186285495758, -0.3200969398021698, -0.4761805236339569, 0.28882765769958496, -0.304536372423172, 0.109751656651...
</div> </div> </xsl:element> </xsl:element> <xsl:element name="tr"> <xsl:element name="td">
[ 0.10261737555265427, -0.37180861830711365, 0.1755458116531372, 0.031657975167036057, -0.1261337697505951, -0.06771361082792282, -0.043668411672115326, -0.6180803775787354, -0.03143445402383804, -0.12318358570337296, -0.3007800579071045, 0.5225309133529663, -0.26898089051246643, 0.031911581...
<xsl:attribute name="style"><![CDATA[padding:0px;background-color:transparent;]]></xsl:attribute> <xsl:element name="a"> <xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute> <xsl:value-of select="ddwrt:FormatDate(dc:date,number($rss_LCID),15)"/...
[ -0.048819202929735184, -0.297688364982605, 0.5410237312316895, -0.04076478257775307, -0.08327135443687439, -0.11153588443994522, -0.027454787865281105, -0.37372255325317383, -0.39163222908973694, -0.38266676664352417, -0.484589546918869, 0.37591835856437683, -0.21993359923362732, 0.0726335...
</xsl:element> </xsl:element> </xsl:element> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet> ```
[ -0.007704803254455328, -0.07820332795381546, 0.12171468883752823, 0.06865300983190536, -0.15152207016944885, -0.2251749187707901, -0.08616863191127777, -0.6065639853477478, 0.03075057826936245, -0.6220209002494812, -0.3345327079296112, 0.29013508558273315, -0.29021647572517395, -0.18279169...
I am using YUI reset/base, after the reset it sets the `ul` and `li` tags to list-style: disc outside; My markup looks like this: ``` <div id="nav"> <ul class="links"> <li><a href="">Testing</a></li> </ul> </div> ``` My CSS is: ``` #nav {} #nav ul li { list-style: none; } ``` Now that ma...
[ 0.09458360075950623, 0.17589619755744934, 0.41099250316619873, -0.420779824256897, -0.2732909023761749, 0.010038869455456734, 0.30554354190826416, -0.15054044127464294, -0.22507323324680328, -0.7463239431381226, -0.06665515899658203, 0.44526317715644836, -0.19002461433410645, 0.10915826261...
Dan was close with his answer, but this isn't an issue of specificity. **You can set the list-style on the list (the UL) but you can also override that list-style for individual list items (the LIs).** You are telling the browser to not use bullets on the list, but YUI tells the browser to use them on individual list ...
[ 0.18728482723236084, 0.1310938000679016, 0.17965959012508392, 0.15064898133277893, -0.5659971237182617, -0.14187388122081757, -0.09714287519454956, -0.295786589384079, -0.11634504795074463, -0.5270330905914307, -0.18190838396549225, 0.6339618563652039, -0.5332669615745544, -0.2867895662784...
the list items: ``` ul li{ list-style: disc outside; } /* in YUI base.css */ #nav ul.links li { list-style: none; } ```
[ -0.4168298840522766, 0.024363301694393158, 0.5032971501350403, -0.09004160016775131, -0.2472878098487854, 0.003819077741354704, -0.14071249961853027, 0.06641856580972672, -0.34560060501098633, -0.4494277238845825, -0.5176400542259216, 0.5619223713874817, -0.23941242694854736, 0.14055374264...
The `unzip` command doesn't have an option for recursively unzipping archives. If I have the following directory structure and archives: ``` /Mother/Loving.zip /Scurvy/Sea Dogs.zip /Scurvy/Cures/Limes.zip ``` And I want to unzip all of the archives into directories with the same name as each archive: ``` /Mother...
[ 0.04743077978491783, 0.20994336903095245, 0.4549221098423004, -0.07277427613735199, 0.27791017293930054, -0.10512018203735352, 0.08914369344711304, -0.26554223895072937, -0.4751134514808655, -0.47581541538238525, -0.2950763404369354, 0.5798371434211731, -0.252117782831192, 0.49705308675765...
-P 5 -I fileName sh -c 'unzip -o -d "$(dirname "fileName")/$(basename -s .zip "fileName")" "fileName"' ```
[ 0.027849989011883736, 0.3089115619659424, 0.6561251878738403, -0.24066664278507233, -0.0035921516828238964, 0.29310157895088196, 0.09683489054441452, -0.3209967017173767, 0.006081797648221254, -0.4637899696826935, -0.49406036734580994, 0.3631064295768738, -0.06523607671260834, 0.3928977251...
first question here. I'm developing a program in C# (.NET 3.5) that displays files in a listview. I'd like to have the "large icon" view display the icon that Windows Explorer uses for that filetype, otherwise I'll have to use some existing code like this: ``` private int getFileTypeIconIndex(string fileName) ...
[ 0.4815053641796112, -0.5110778212547302, 0.7626366019248962, -0.048928286880254745, 0.41334837675094604, -0.13321347534656525, -0.12966634333133698, -0.29438719153404236, -0.2962026298046112, -0.736935555934906, 0.05190183222293854, 0.8199517726898193, -0.4289691746234894, 0.08540586382150...
{ case ".pdf": return 1; case ".doc": case ".docx": case ".docm": case ".dotx":case ".dotm": case ".dot":case ".wpd": case ".wps": return 2; default:
[ -0.16082005202770233, -0.3972102403640747, 0.7158377170562744, -0.024626651778817177, 0.5567495226860046, 0.0543842688202858, 0.08762366324663162, -0.143809512257576, -0.12181898206472397, -0.6521838903427124, -0.7766566276550293, 1.0202884674072266, -0.36173298954963684, -0.09289953857660...
return 0; } } ``` The above code returns an integer that is used to select an icon from an imagelist that I populated with some common icons. It works fine but I'd need to add every extension under the sun! Is there a better way? Thanks! You might find the use of [Icon.ExtractAssociatedIcon](http://msdn....
[ 0.027422556653618813, -0.2528921067714691, 0.6649642586708069, -0.098115473985672, -0.13567779958248138, 0.11124807596206665, 0.23980318009853363, -0.08368446677923203, -0.3253956437110901, -0.7797462344169617, 0.049437809735536575, 0.7482555508613586, -0.23710817098617554, -0.026600174605...
We are looking for a reliable "current weather" web service for Europe, with city resolution. We only need the current weather. Since it is for a commercial web site, we don't mind paying a reasonable fee for the service. What are our options? What service would you recommend or avoid based on previous experience? ...
[ 0.5359835028648376, -0.08141662925481796, 0.7469412684440613, 0.22012172639369965, 0.128083735704422, -0.26953786611557007, 0.396740585565567, 0.069960817694664, 0.025051601231098175, -0.5793220400810242, -0.31133487820625305, -0.049519315361976624, -0.20050162076950073, -0.001815072959288...
Could anybody explain in plain words how Cloud computing works? I have read the [Wikipedia article](http://en.wikipedia.org/wiki/Cloud_computing), but still not sure that I understand how cloud actually works. Aside from the latest marketing term? Basically all the resources your program needs are held "somewhere" on ...
[ 0.9286404848098755, 0.25207361578941345, 0.19773398339748383, 0.35906726121902466, 0.26108118891716003, 0.16512638330459595, -0.21091903746128082, 0.44517162442207336, -0.3531036674976349, -0.4221176207065582, 0.09423121809959412, 0.35891395807266235, 0.045752402395009995, 0.08821266144514...
S3 cloud system. You connect to the service and upload your files; you don't know or care where the files are stored, only the location of the entry point to that service. If you have an application then it may also be ran in the cloud, assuming it's suitable. Live Mesh for example is a virtual machine which you can c...
[ 0.2272796928882599, -0.23442278802394867, 0.3855445683002472, 0.04838060587644577, -0.18914861977100372, -0.08894951641559601, 0.44082939624786377, 0.17557287216186523, -0.3520644009113312, -0.8019048571586609, -0.37632766366004944, 0.10914433747529984, -0.3402046263217926, 0.0818716660141...
When I create a socket using accept() and make a FILE out of it using fdopen(), what do I have to do to clean everything up? Do I need to do fclose() on the FILE, shutdown() and close() on the socket, or only the shutdown() and or close() or fclose()? If I don't do fclose(), do I have to free() the FILE pointer manuall...
[ 0.31548425555229187, 0.11183512210845947, 0.45792633295059204, -0.12042688578367233, 0.13426291942596436, -0.17605717480182648, 0.46145227551460266, -0.4518851935863495, -0.014989497140049934, -0.6017078161239624, -0.5000783205032349, 0.6246422529220581, -0.4658947288990021, 0.437805205583...
shutdown() is needed, either.
[ 0.20243680477142334, -0.20889553427696228, 0.3674109876155853, 0.2484327107667923, 0.1696767956018448, -0.45130112767219543, 0.13656792044639587, 0.28527846932411194, -0.1728958934545517, -0.2993721663951874, -0.828700840473175, 0.5522334575653076, -0.150446355342865, -0.010606617666780949...
What experience have you had with introducing a Ribbon style control to legacy MFC applications? I know it exists in the new VC2008 Feature Pack, but changing compilers from VC2005 is a big deal for our source base and integration to our environment, Intel FORTRAN, ClearCase, many 3rd libraries. There are quiet a fe...
[ 0.2767890989780426, -0.019823983311653137, 0.19811847805976868, 0.23981894552707672, 0.05652657523751259, -0.0040914504788815975, -0.20933447778224945, -0.18108417093753815, -0.397175669670105, -0.37983906269073486, 0.06038299947977066, 0.1768229603767395, -0.10485873371362686, 0.098473347...
barrier, released a legacy application with VC2005 and a Ribbon UI. We currently use a very old version of Stingray Objective Toolkit to provide our MFC extensions like customizable toolbars and docking windows etc. --- Any one used [Prof-UIS](http://www.prof-uis.com/), compared to the other commercial ones its rel...
[ 0.2145681381225586, -0.20824836194515228, 0.5936733484268188, 0.1403588354587555, -0.005127097479999065, -0.15781347453594208, 0.015782788395881653, -0.23232677578926086, -0.20954479277133942, -0.6096781492233276, 0.13663893938064575, 0.4700618088245392, -0.2744722366333008, 0.054055832326...
2005. I'm not aware of any open source ribbon control libraries for C++, though.
[ -0.45382189750671387, -0.08363273739814758, 0.14101655781269073, 0.21539783477783203, -0.41840213537216187, -0.1491280347108841, 0.01993676647543907, 0.13834068179130554, -0.4821222126483917, -0.19685757160186768, -0.09463971108198166, 0.022528527304530144, 0.2013901323080063, 0.0874004662...
I am looking for best practices for detecting and preventing DOS in the service implementation (not external network monitoring). The service handles queries for user, group and attribute information. What is your favorite source of information on dealing with DOS? This is a technique I found very useful.. [Prevent ...
[ 0.26651716232299805, 0.2647519111633301, 0.2587239444255829, -0.10575170069932938, 0.01848801039159298, -0.44659897685050964, 0.4895325005054474, -0.26850831508636475, -0.16379933059215546, -0.39244598150253296, -0.029890649020671844, 0.6341890692710876, -0.0856703445315361, 0.328246712684...
What problems does MEF (Managed Extensibility Framework) solves that cannot be solved by existing IoC/DI containers? The principle purpose of MEF is extensibility; to serve as a 'plug-in' framework for when the author of the application and the author of the plug-in (*extension*) are different and have no particular kn...
[ 0.13501080870628357, 0.09947270154953003, 0.2067907154560089, 0.18059608340263367, 0.15526080131530762, -0.3512052893638611, -0.1933809220790863, -0.2093246430158615, -0.09235620498657227, -0.6784331798553467, -0.3973389267921448, 0.25561195611953735, -0.21387454867362976, 0.14658859372138...
site: *"MEF allows tagging extensions with additonal metadata which facilitates rich querying and filtering"* Combined with an ability to delay-load tagged extensions, being able to interrogate extension metadata *prior* to loading opens the door to a slew of interesting scenarios and substantially enables capabiliti...
[ 0.5105952024459839, -0.09141091257333755, 0.41551798582077026, 0.22852715849876404, 0.12494537234306335, -0.26917165517807007, 0.136675164103508, -0.1856020838022232, -0.27368098497390747, -0.801470935344696, -0.4144724905490875, 0.2995162606239319, -0.021168170496821404, 0.074206940829753...
much differentiates it from other IoC containers. So while MEF can be used for composition, that's merely a small intersection of its capabilities relative to other IoCs, with which I suspect we'll be seeing a lot of incestuous interplay going forward.
[ 0.1369463950395584, 0.008322291076183319, -0.11455471813678741, 0.22720687091350555, -0.08000987023115158, -0.40386727452278137, -0.2718792259693146, -0.21031230688095093, 0.3086315989494324, -0.30167749524116516, 0.0066579775884747505, 0.13278815150260925, 0.016695285215973854, -0.0010742...
I know that it's possible to replace the browse button, which is generated in html, when you use `input` tag with `type="file`. I'm not sure what is the best way, so if someone has experience with this please contribute. The best way is to make the file input control **almost** invisible (by giving it a very low opaci...
[ 0.2684820592403412, -0.05457421764731407, 0.40350770950317383, 0.19878935813903809, 0.012271787971258163, -0.2357606440782547, 0.236258864402771, 0.3612820506095886, -0.1905212104320526, -0.7857412099838257, -0.18333753943443298, 0.3824482858181, -0.15048764646053314, 0.08774440735578537, ...
that button, it will still capture the click events (this is why you want to use opacity, not visibility or display - browsers make the element unclickable if you use those to hide it). [This article](http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom) goes in-depth on the technique.
[ 0.3265058398246765, -0.2535023093223572, 0.20330315828323364, -0.20755572617053986, 0.36371296644210815, -0.026121240109205246, 0.15679548680782318, -0.6323776841163635, -0.1852516382932663, -0.16693992912769318, 0.02739504724740982, 0.7262962460517883, -0.12159205228090286, -0.37143805623...
I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and (depending on the command) sends a reply. The problem is that the client may have no interest in the answer and sometimes exits early. So writing to that socket will cause a `SIGPIPE` and make my server cra...
[ 0.12312819808721542, 0.22375378012657166, 0.2673802077770233, 0.2705286741256714, -0.09258881956338882, -0.09914219379425049, 0.20513702929019928, 0.2204865962266922, -0.4022309184074402, -0.4537692070007324, 0.13926878571510315, 0.3369547426700592, -0.13139712810516357, 0.3658821582794189...
catch the `SIGPIPE` with a handler and ignore it? You generally want to ignore the `SIGPIPE` and handle the error directly in your code. This is because signal handlers in C have many restrictions on what they can do. The most portable way to do this is to set the `SIGPIPE` handler to `SIG_IGN`. This will prevent any ...
[ 0.264356404542923, -0.2666029632091522, 0.24400657415390015, 0.04248007386922836, -0.19791048765182495, -0.24227957427501678, 0.2575928568840027, 0.17936691641807556, -0.389861524105072, -0.4631401002407074, -0.16609486937522888, 0.6220735907554626, -0.5597952604293823, 0.01889360323548317...
that not all operating systems support the `MSG_NOSIGNAL` flag. Lastly, you may also want to consider the `SO_SIGNOPIPE` socket flag that can be set with `setsockopt()` on some operating systems. This will prevent `SIGPIPE` from being caused by writes just to the sockets it is set on.
[ 0.27196112275123596, -0.07711668312549591, -0.0009464300819672644, 0.15548616647720337, 0.09073887020349503, -0.20963440835475922, 0.29459258913993835, 0.4346599578857422, -0.459507018327713, -0.5172638297080994, -0.3406439423561096, 0.18423813581466675, -0.29224729537963867, -0.0160771030...
I have a project with a bunch of external sounds to a SWF. I want to play them, but any time I attempt load a new URL into the sound object it fails with either, > Error #2068: Invalid Sound or raises an ioError with > Error #2032 Stream Error // Tried with path prefixed with "http://.." "file://.." "//.." and ".....
[ 0.2899496555328369, 0.19461418688297272, 0.44459792971611023, -0.19168610870838165, 0.13182814419269562, -0.1082766056060791, 0.4381808638572693, -0.7400563955307007, -0.15174861252307892, -0.5673571228981018, -0.2605522572994232, 0.8351101875305176, -0.03256658464670181, 0.188500896096229...
and when I use `var path:String = "../assets/song.mp3";` then it compiles with no errors. What is your actual directory structure?
[ 0.08457252383232117, 0.17570282518863678, 0.280195415019989, 0.05387993901968002, 0.31126344203948975, -0.28929466009140015, -0.009409977123141289, -0.14931003749370575, -0.15849973261356354, -0.3931299149990082, 0.11256157606840134, 0.6042904257774353, -0.06950722634792328, -0.08634056895...
I have a table `y` Which has two columns `a` and `b` Entries are: ``` a b 1 2 1 3 1 4 0 5 0 2 0 4 ``` I want to get 2,3,4 if I search column `a` for 1, and 5,2,4 if I search column `a`. So, if I search A for something that is in A, (1) I get those rows, and if there are no entries A for given v...
[ -0.04125012084841728, 0.49993523955345154, 0.47354647517204285, -0.3465850353240967, 0.03540601581335068, 0.3883180320262909, 0.09522281587123871, -0.3989979326725006, -0.24949292838573456, -0.4191988408565521, -0.011083954945206642, 0.40569692850112915, -0.32629820704460144, 0.25676742196...
= \'1\';'); //This gives desired results, 3 rows $r = mysql_query('SELECT `b` FROM `y` WHERE `a` = \'2\';'); //This does not give desired results yet. //Get the number of rows, and then get the 'defaults' if(mysql_num_rows($r) === 0) $r = mysql_query('SELECT `b` FROM `y` WHERE `a` = 0;'); ``` So, now that it's suffi...
[ -0.3290916085243225, -0.1120845377445221, 0.4353135824203491, -0.3743322193622589, -0.048829346895217896, 0.35364294052124023, 0.13433785736560822, -0.6528513431549072, -0.056997381150722504, -0.5780868530273438, -0.1469654142856598, 0.773722231388092, -0.36021408438682556, -0.221937581896...
y group by a),@value,0); ``` It checks if @value exists in the table, if not, then it uses 0 as a default. @value can be a php value too. Hope it helps :)
[ 0.14415986835956573, 0.19933150708675385, 0.432962030172348, 0.03185475990176201, -0.1093246266245842, -0.1917949616909027, 0.22392408549785614, -0.07845976948738098, -0.1925514042377472, -0.3382459878921509, -0.006329687312245369, 0.3697027266025543, -0.2699076533317566, -0.08515736460685...
When developing an application that sends out notification email messages, what are the best practices for 1. not getting flagged as a spammer by your hosting company. (Cover any of:) * best technique for not flooding a mail server * best mail server products, if you were to set up your own * sending messages as i...
[ 0.26209983229637146, 0.014669062569737434, 0.2033565193414688, -0.01865863800048828, -0.27681493759155273, -0.32032233476638794, 0.4139527976512909, -0.06989971548318863, -0.3493499755859375, -0.4264666438102722, -0.23164524137973785, 0.4032232463359833, -0.25538837909698486, -0.2776069939...
etc to make sure your emails are properly identified * best SMTP header techniques to avoid getting flagged as spam when sending emails for users (for example, using Sender and From headers together) * any other lessons learned An additional requirement: this application would be sending a single message to a single...
[ 0.3438255488872528, -0.19601891934871674, 0.3524218201637268, 0.15392592549324036, -0.27011197805404663, -0.4501788318157196, 0.5058027505874634, -0.008352294564247131, -0.45238378643989563, -0.774193286895752, -0.07202106714248657, 0.35777515172958374, -0.3272876739501953, -0.232167035341...
but if the requirement is one email to a single recipient per event, that shouldn't be too much of an issue. the things that tend to clog mail systems are emails with hundreds (or more) of recipients. if you have events firing off all the time, perhaps consider consolidating them and having an email sent that summariz...
[ 0.35527485609054565, -0.06637881696224213, 0.2763865888118744, 0.25721704959869385, -0.010666794143617153, -0.34492895007133484, 0.5123112797737122, 0.0026530891191214323, -0.4196796119213104, -0.6526249051094055, -0.16464616358280182, 0.5275814533233643, -0.342819482088089, -0.06998922675...
address instead of the From address when an email message is being composed. you should also set the "Return-Path" header of any email, as email without this will often get filtered off. ex. ``` From: me@me.com Return-Path: me@me.com Reply-To: auto@myapp.com ``` > configuring and using sender-id, domain-keys, SPF,...
[ 0.4822973310947418, 0.03804928436875343, 0.45500466227531433, -0.08368400484323502, -0.16068246960639954, -0.11906817555427551, 0.17717596888542175, -0.18805551528930664, -0.17451998591423035, -0.6777405738830566, -0.24566558003425598, 0.37481722235679626, -0.308287650346756, 0.19452819228...
that user would have to have SPF (for example) set in their DNS to allow your mail server as a valid sender. you can imagine how messy (if not outright impossible) this would get with a number of users with various domain names. as for reverse DNS and the like, it really depends. most client ISP's, etc... will just ch...
[ 0.18660439550876617, 0.012319780886173248, 0.7191380858421326, -0.03446735441684723, -0.284127414226532, -0.03199092671275139, 0.21599316596984863, -0.13336415588855743, -0.379714697599411, -0.37174808979034424, -0.1359090954065323, 0.23396378755569458, -0.21636056900024414, 0.480972260236...
domain name, and not the real mail server). there are a few stringent networks that require matching reverse DNS, but this requires that you have control over the mail server if it doesn't match in the first place. if you can be a bit more specific i may be able to provide a bit more advice, but generally, for people...
[ 0.6439542770385742, 0.1979077309370041, 0.4525943100452423, 0.20083965361118317, -0.20119890570640564, -0.54727703332901, 0.3924407660961151, 0.030079970136284828, -0.18662509322166443, -0.5675123929977417, 0.05604616925120354, 0.27398014068603516, -0.5114309787750244, 0.2871493101119995, ...
"X-Abuse-To" (these are custom headers, for informational purposes only really) * make sure reverse DNS is set for the IP address of your outgoing mail server
[ 0.2816377282142639, 0.24813708662986755, 0.32453516125679016, -0.016936102882027626, -0.06258729100227356, -0.08960308879613876, 0.5896459221839905, 0.21454960107803345, -0.10520410537719727, -0.39614591002464294, 0.08482054620981216, 0.1874334067106247, -0.2762698829174042, 0.202956989407...
What is the purpose of the code behind view file in ASP.NET MVC besides setting of the generic parameter of ViewPage ? Here's my list of reasons why code-behind can be useful taken from [my own post](https://stackoverflow.com/questions/489415/how-to-get-a-codebehind-file-for-an-asp-net-mvc-view-in-rc1-to-be-created-by-...
[ 0.3199675679206848, 0.0235636904835701, 0.24992196261882782, -0.023648833855986595, -0.26406288146972656, -0.05179881677031517, 0.2727036774158478, -0.17148034274578094, -0.32382598519325256, -0.3684495687484741, -0.14766427874565125, 0.6131247878074646, -0.24211443960666656, 0.23638401925...
very least. * Logic that is specific only to one view or model and does not belong to an HtmlHelper. As a side note I don't think an HtmlHelper should know about any 'Model' classes. Its fine if it knows about the classes defined inside a model (such as IEnumerable, but I dont think for instance you should ever have an...
[ 0.4628698229789734, 0.07615391910076141, 0.2557428181171417, 0.2004138082265854, -0.21783803403377533, -0.1471439003944397, 0.3995635509490967, 0.10709205269813538, -0.22452540695667267, -0.8578293323516846, 0.23030075430870056, 0.6762123703956604, -0.2668394148349762, -0.11943481862545013...
and other classes in that namespace to generate my HTML in an object oriented way (or I have existing code that does that that I want to port). * What if I'm planning on using a different view engine in future. I might want to keep some of the logic aside from the tag soup to make it easier to reuse later. * What if I ...
[ 0.5102652311325073, -0.07152450829744339, 0.2889769971370697, 0.17642246186733246, -0.29298636317253113, 0.13844291865825653, 0.3894059360027313, -0.05959739908576012, -0.44100719690322876, -0.6580249667167664, 0.21617598831653595, 0.41464754939079285, -0.0741536095738411, 0.05690675973892...
who I don't trust to not mess up the 'tag soup' and want to write anythin beyond very basic looping in the .aspx.cs file. * If you want to sort the data based upon the view's default sort option. I really dont think the controller should be sorting data for you if you have multiple sorting options accessible only from ...
[ 0.4186389148235321, 0.015620866790413857, 0.15979143977165222, 0.252390593290329, -0.28685086965560913, -0.19163784384727478, 0.44005656242370605, 0.20980797708034515, -0.3950825035572052, -0.6173818707466125, 0.038740549236536026, 0.44270023703575134, -0.012048057280480862, -0.24212007224...
want to prototype what may become a new HtmlHelper but you haven't yet decided whether its generic enough or not to warrant creating an HtmlHelper. (basically same as previous point) * You want to create a helper method to render a partial view, but need to create a model for it by plucking data out of the main page's ...
[ 0.19481076300144196, -0.18361245095729828, 0.0472053624689579, 0.3699274957180023, -0.24473348259925842, -0.08184816688299179, 0.23939546942710876, 0.03163335844874382, -0.378349632024765, -0.5219897031784058, 0.0965409129858017, 0.2043333798646927, -0.41688892245292664, -0.092732705175876...
run into any problems !! **Yes! Some views should not need codebehind at all.** **Yes! It sucks to get a stupid .designer file created in addition to .cs file.** **Yes! Its kind of annoying to get those little + signs next to each view.** **BUT** - It's really not that hard to NOT put data access logic in the code-...
[ 0.49540525674819946, 0.10826323926448822, 0.20997180044651031, 0.3007108271121979, -0.2845844328403473, -0.25692152976989746, 0.747574508190155, 0.5807974934577942, -0.4069208800792694, -0.6916732788085938, 0.14144623279571533, 0.6100594997406006, -0.16268739104270935, 0.06344594806432724,...
I am using Fluent NHibernate and having some issues getting a many to many relationship setup with one of my classes. It's probably a stupid mistake but I've been stuck for a little bit trying to get it working. Anyways, I have a couple classes that have Many-Many relationships. ``` public class Person { public P...
[ -0.15010525286197662, -0.05633535236120224, 0.12699846923351288, -0.13616803288459778, -0.24620403349399567, 0.12666483223438263, 0.4850253462791443, -0.12193451821804047, 0.14716286957263947, -0.6517886519432068, 0.023570286110043526, 0.8269197344779968, -0.2160395085811615, -0.0430799871...
Admins= new List<Person>(); } public virtual IList<Person> Admins{ get; set; } } ``` With the mapping looking like this Person: ... ``` HasManyToMany<Groups>(x => x.GroupsOwned) .WithTableName("GroupAdministrators") .WithParentKeyColumn("PersonID") .WithChildKeyColumn("GroupID") .Cascade.Sa...
[ -0.36248666048049927, -0.030339384451508522, 0.34815433621406555, -0.03930043429136276, 0.006232292391359806, 0.43426936864852905, 0.3534032106399536, -0.48793506622314453, -0.12123288214206696, -0.7343646287918091, -0.07339883595705032, 0.3662377893924713, -0.32456159591674805, 0.21463677...
the initial group, however, when I get the group back if I check count on Group.Admins, the count is 0. The Join table has the GroupID and the PersonID saved in it. Thanks for any advice you may have. The fact that it is adding two records to the table looks like you are missing an [inverse attribute](http://docs.jbo...
[ -0.29592645168304443, -0.13807211816310883, 0.3362842798233032, -0.20829923450946808, -0.4861823320388794, 0.12528587877750397, 0.18013018369674683, -0.33051156997680664, -0.2790851593017578, -0.6500289440155029, 0.21001289784908295, 0.3720127046108246, -0.32977890968322754, 0.081672154366...
how to do it in XML.
[ 0.20067279040813446, 0.09088007360696793, -0.17530132830142975, 0.2020135223865509, -0.017209725454449654, -0.17373844981193542, -0.06883805245161057, -0.15222854912281036, 0.055522724986076355, -0.5301346778869629, -0.22623831033706665, 0.32979944348335266, -0.15412558615207672, -0.627491...
It's really annoying that visual studio hides typos in aspx pages (not the code behind). If the compiler would compile them, I would get a compile error. Compile the pages at compile time. See Mike Hadlow's post here: <http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html>
[ 0.6885378956794739, 0.20154641568660736, -0.42402511835098267, -0.06428638100624084, -0.46804314851760864, -0.260830819606781, 0.23825620114803314, -0.08492550253868103, -0.41609933972358704, -0.5991206169128418, 0.05820288136601448, 0.30839234590530396, -0.25990620255470276, -0.0847261101...