text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account? **EDIT:** Thanks for the rapid feedback....so I have two options, POP or IMAP. Which one should I use? An...
[ 0.25314152240753174, -0.03757254406809807, 0.6142355799674988, 0.2735363245010376, -0.32727691531181335, 0.03318564593791962, 0.49297693371772766, 0.28112173080444336, -0.14405082166194916, -0.8351991176605225, 0.04418925940990448, 0.5337857604026794, -0.3864625096321106, 0.105573140084743...
I have a Viewbox with `Stretch=Uniform` in order to not distort the content. However, when the frame window is wider or taller than the content, the Viewbox content is always centered. I cannot seem to find any content alignment options on the Viewbox. Is there a way to do this? Try `VerticalAlignment="Top"` and `Hori...
[ 0.15335677564144135, -0.1919015645980835, 0.6539319157600403, -0.2315925806760788, -0.0834406390786171, 0.08539558947086334, -0.07413365691900253, -0.04413510486483574, -0.2153463214635849, -0.8692241907119751, -0.04766497388482094, 0.5454110503196716, -0.040328506380319595, -0.12118452787...
What are the best practices for naming ant targets? For example, what would you expect the target "test" to run? All unit tests? All functional tests? Both? What are the standard names used for running different types of tests (unit/functional/all)? Are there standards for target names to deploy software in J2SE? in...
[ 0.723692774772644, 0.16589078307151794, -0.24898672103881836, -0.06352448463439941, -0.32582542300224304, 0.1617026925086975, 0.41159820556640625, -0.46218910813331604, -0.22047969698905945, -0.7535409331321716, 0.28359904885292053, 0.26150187849998474, -0.17242884635925293, -0.22236737608...
not need to implement > all of these in a single project. ``` all Build and test everything; create a distribution, optionally install. clean Delete all generated files and directories. deploy Deploy the code, usually to a remote server. dist Produce the distributa...
[ 0.4591161906719208, 0.046783801168203354, 0.40334293246269226, 0.2992035150527954, 0.17854148149490356, -0.36305415630340576, 0.20533287525177002, -0.13486000895500183, 0.11452320963144302, -0.709163248538971, -0.6944350004196167, 0.6120203733444214, -0.2479363977909088, -0.002685914048925...
Clean up the distribution files only. docs Generate all documentation. init Initialize the build: create directories, call <tstamp> and other common actions. install Perform a local installation. javadocs Generate the Javadoc pages. printerdocs Generate printable ...
[ 0.44950422644615173, 0.048631031066179276, 0.22000788152217865, -0.026813674718141556, 0.01530369184911251, -0.3269854784011841, 0.28943997621536255, -0.34512585401535034, -0.05297590419650078, -0.6637043356895447, -0.5278581380844116, 0.5039834380149841, -0.2051239013671875, -0.0223977938...
Run the unit tests. uninstall Remove a local installation. ``` This page also provides other good guidelines.
[ 0.5004071593284607, 0.23162370920181274, -0.194951593875885, -0.13056117296218872, 0.14301741123199463, -0.5554926991462708, 0.43634238839149475, -0.22061553597450256, 0.19211456179618835, -0.5023406744003296, -0.33113065361976624, 0.8697708249092102, -0.03265156224370003, -0.0454708077013...
I would like to keep a static counter in a garbage collected class and increment it using Interlocked::Increment. What's the C++/CLI syntax to do this? I've been trying variations on the following, but no luck so far: ``` ref class Foo { static __int64 _counter; __int64 Next() { return System::Threadi...
[ 0.4063851237297058, 0.08492141216993332, 0.5497475862503052, -0.0944068655371666, 0.24572649598121643, 0.06250438839197159, 0.1163245290517807, -0.14081594347953796, -0.28160667419433594, -0.29974183440208435, 0.14516036212444305, 0.4363672435283661, -0.5410195589065552, 0.0849793180823326...
__int64 %trackRefCounter = _counter; return System::Threading::Interlocked::Increment(trackRefCounter); } }; ```
[ -0.037871621549129486, 0.14435787498950958, 0.4064542055130005, -0.03168436512351036, 0.445962518453598, 0.2637852132320404, 0.19583667814731598, -0.0015316118951886892, -0.2711530923843384, -0.17363479733467102, -0.014201694168150425, 0.6792834401130676, -0.22876299917697906, 0.4718595743...
I have a MFC dialog with 32 CComboBoxes on it that all have the same data in the listbox. Its taking a while to come up, and it looks like part of the delay is the time I need to spend using InsertString() to add all the data to the 32 controls. How can I subclass CComboBox so that the 32 instances share the same data?...
[ 0.07026075571775436, 0.03195604309439659, 0.3590880036354065, -0.260415643453598, 0.22491911053657532, 0.013392544351518154, 0.45024141669273376, -0.3713904619216919, -0.32589107751846313, -0.797868549823761, -0.014652015641331673, 0.6792530417442322, -0.7195312976837158, 0.139900952577590...
I've written a fairly simple java application that allows you to drag your mouse and based on the length of the mouse drag you did, it will shoot a ball in that direction, bouncing off walls as it goes. Here is a quick screenshot: [alt text http://img222.imageshack.us/img222/3179/ballbouncemf9.png](http://img222.im...
[ 0.1292746514081955, -0.10779593884944916, 0.6867764592170715, 0.05012083053588867, -0.23817694187164307, 0.14157851040363312, -0.13393893837928772, -0.1100371927022934, -0.3023597300052643, -0.5764864683151245, 0.024948077276349068, 0.27813613414764404, -0.4492911994457245, 0.0043049738742...
public Ball(int xPos, int yPos, int xVector, int yVector) { this.xPos = xPos; this.yPos = yPos; this.xVector = xVector; this.yVector = yVector; } public void step() { posX += xVector; posY += yVector; checkCollisions(); } public
[ -0.05305660143494606, -0.35450640320777893, 0.5853181481361389, -0.015258628875017166, -0.10822078585624695, 0.33171355724334717, -0.029482923448085785, -0.25647202134132385, -0.10997956991195679, -0.6966275572776794, -0.3455076217651367, 0.5191800594329834, -0.3744085729122162, -0.0585994...
void checkCollisions() { // Check if we have collided with a wall // If we have, take the negative of the appropriate vector // Depending on which wall you hit } public void draw() { // draw our circle at it's position } } ``` This works great. All the balls bounce...
[ 0.34672462940216064, -0.08066675812005997, 0.3095397353172302, -0.044502247124910355, -0.12083730101585388, -0.28363436460494995, 0.09461483359336853, -0.3511849045753479, -0.26779863238334656, -0.5433878302574158, 0.046066541224718094, 0.7216551303863525, -0.3022964894771576, -0.172659978...
I have decided that I want to be able to include the effects of gravity. I know that objects accelerate toward the earth at 9.8m/s but I don't directly know how this should translate into code. I realize that the yVector will be affected but my experimentation with this didn't have the desired effect I wanted. Ideally...
[ 0.4977489411830902, 0.12940362095832825, 0.5432503819465637, 0.30961284041404724, -0.23551735281944275, -0.0984925925731659, -0.14475181698799133, 0.06626937538385391, -0.5528330206871033, -0.6958756446838379, 0.2133326530456543, 0.5077731609344482, 0.26937612891197205, 0.08924943208694458...
of the ball on each step? What must be done when it hits the "ground" so that I can allow it to bounce up again, but somewhat shorter then the previous time? Any help is appreciated in pointing me in the right direction. --- Thanks you for the comments everyone! It already is working great! In my step() I am adding...
[ 0.39673858880996704, -0.04295004531741142, 0.8144993782043457, -0.24046970903873444, 0.023091312497854233, -0.08155006170272827, 0.0882299542427063, -0.1994616538286209, -0.24808256328105927, -0.5515642762184143, 0.38786861300468445, 0.5007731318473816, -0.05189350247383118, -0.16203896701...
{ posX = radius; // Place ball against edge xVector = -(xVector * friction); } else if (posX + radius > rightBound) // Right Wall? { posX = rightBound - radius; // Place ball against edge xVector = -(xVector * friction); }
[ -0.4537583291530609, 0.06905603408813477, 0.5409256815910339, 0.00395042123273015, -0.2135884165763855, 0.3145485818386078, -0.14655672013759613, -0.29359984397888184, -0.23175181448459625, -0.5747070908546448, -0.11141563951969147, 0.45490387082099915, 0.09200301766395569, 0.0272260680794...
// Same for posY and yVector here. } ``` However, the balls will continue to slide around/roll on the floor. I assume this is because I am simply taking a percentage (90%) of their vectors each bounce and it is never truly zero. Should I add in a check that if the xVector becomes a certain absolute value I should jus...
[ 0.2886441946029663, 0.06882288306951523, 0.5860370993614197, -0.13128353655338287, 0.03247225657105446, 0.009176580235362053, 0.02680482715368271, -0.04499829187989235, -0.5185098648071289, -0.48549309372901917, 0.07691140472888947, 0.6575261950492859, -0.03267579525709152, 0.3546518087387...
When it's going up (yVector is positive) it would slow it down. This would not account for friction, so the things should bounce pretty much for ever. edit1: To account for friction, whenever it reverses (and you reverse the sign), lower the absolute number a little. Like if it hits at yVector=-500, when you reverse ...
[ 0.19433683156967163, -0.3330102562904358, 0.8140735030174255, 0.22624991834163666, -0.4020683765411377, 0.1390821635723114, -0.14342619478702545, -0.20238620042800903, -0.42969417572021484, -0.3664647042751312, 0.3104556202888489, 0.5964926481246948, -0.2825738787651062, -0.129015833139419...
bottom forever--Depending on how high your numbers are, it could be one of two things. Either your numbers are large and it just seems to take forever to finish, or you are rounding and your Vectors are always 5 or something. (90% of 5 is 4.5, so it may round up to 5). I'd print out a debug statement and see what the ...
[ 0.16133984923362732, -0.6063361167907715, 0.33412858843803406, 0.4166494309902191, 0.386121541261673, 0.2674349844455719, -0.15324917435646057, 0.2679527699947357, -0.5986632704734802, -0.13843674957752228, 0.25261786580085754, 0.21231116354465485, 0.10746453702449799, 0.16208165884017944,...
down and eventually stops, then you might have to raise your friction coefficient. If you can't find an easy "rounding" function, you could use (0.9 \* Vector) - 1, subtracting 1 from your existing equation should do the same thing.
[ -0.10886576771736145, -0.07711192220449448, 0.7054329514503479, 0.07962524145841599, 0.0027918266132473946, 0.060775306075811386, -0.12305259704589844, -0.3005177676677704, -0.3710351884365082, -0.482348769903183, 0.14665374159812927, 0.45215538144111633, -0.013377651572227478, 0.547490656...
I have many different branches/checkouts of the same project code on my development machine. Each one is virtually the same except for various maintenance bug fixes or improvements I'm working on within each project. The problem comes when I use Find in Files inside Visual Studio to search through my code. VS2005 stor...
[ 0.42462873458862305, 0.0345623679459095, 0.1567021608352661, 0.21617069840431213, 0.1728764921426773, -0.12393533438444138, 0.3632601797580719, 0.14680121839046478, -0.3291964828968048, -0.7808032631874084, 0.2433346062898636, 0.38939762115478516, 0.0034532533027231693, 0.2530733644962311,...
that I've edited the wrong project. (Argh!!) Is there a way to make VS default its Find in Files search to the project directory? Obviously a properties setting would be wonderful, but an add-in would be fine too. This drives me nuts too. But in "Look In:" dropdown on the find in files dlg you will find items for Solu...
[ 0.23809537291526794, 0.043641652911901474, 0.28445905447006226, 0.3014160990715027, -0.08083786070346832, -0.2836326062679291, 0.17816424369812012, 0.21671117842197418, -0.10522107779979706, -0.3409267067909241, 0.13069285452365875, 0.5657155513763428, -0.06160219758749008, 0.2262295335531...
We have an HttpHandler that deals directly with binary posts over HTTP from custom client software. The client software occasionally sends data which results in IIS 7 responding with a 400 - Bad Request. Since the "400 Bad Request" is special in that HTTP.SYS transparently handles it in kernel mode without notifying us...
[ 0.22033101320266724, -0.10542167723178864, 0.3468008041381836, 0.172479048371315, -0.19765625894069672, 0.011524778790771961, 0.49293252825737, 0.043536800891160965, -0.1730256825685501, -0.5181310176849365, -0.21078874170780182, 0.6268184781074524, -0.20251457393169403, -0.022957868874073...
to be in the current Request/Response. If you know what is causing the 400, then you may be able to customise the behaviour of http.sys via the registry to deal with it: <http://support.microsoft.com/kb/820129> However, you should be aware that there are potential security and performance ramifications of doing this....
[ 0.11806514114141464, -0.4715990126132965, 0.3103295862674713, 0.11320957541465759, 0.06351787596940994, -0.059159740805625916, 0.33853480219841003, -0.14339286088943481, -0.25133395195007324, -0.7561952471733093, -0.31348469853401184, 0.20907343924045563, -0.16162829101085663, 0.0040482012...
I need to read the value of a property from a file in an Ant script and strip off the first few characters. The property in question is ``` path=file:C:/tmp/templates ``` This property is store in a file that I can access within the ant script via ``` <property file="${web.inf.dir}/config.properties"/> ``` I have...
[ 0.386834979057312, 0.2635452151298523, 0.13432148098945618, 0.0054192086681723595, -0.06562380492687225, 0.08005261421203613, 0.059572070837020874, -0.3852270245552063, -0.06986988335847855, -0.8407610058784485, 0.09975777566432953, 0.45696043968200684, 0.011820857413113117, 0.122896030545...
I arrive to output a string on multiple lines inside a retangle but haven't find a way to reduce or enlarge the line spacing. How to do that? [This MSDN](http://msdn.microsoft.com/en-us/library/xwf9s90b.aspx) should help you. Line spacing is a result of the Font you are using. You may need to break your DrawString comm...
[ 0.28533899784088135, -0.19915564358234406, 0.5513869524002075, 0.02014841139316559, -0.2010936439037323, 0.274941086769104, 0.09515566378831863, -0.1279604285955429, -0.07013880461454391, -0.8822178244590759, 0.046143099665641785, 0.11552987992763519, -0.11637420952320099, 0.17508262395858...
When I try to run the following code (from the REPL) in Clojure: ``` (dotimes [i 5] (.start (Thread. (fn [] (Thread/sleep (rand 1000)) (println (format "Finished %d on %s" i (Thread/currentThread))))))) ``` I get the following error: ``` java.lang.Exception: Unable to resolve symbol: i in this ...
[ -0.23800432682037354, 0.4345768988132477, 0.303874135017395, -0.13978134095668793, 0.08366863429546356, -0.031213462352752686, 0.7491142749786377, -0.30971139669418335, -0.23400868475437164, -0.7222311496734619, -0.14007756114006042, 0.38238850235939026, -0.28344205021858215, -0.0361187085...
(println (format "Finished %d on %s" i (Thread/currentThread))))))) Finished 0 on Thread[Thread-16,5,main] Finished 4 on Thread[Thread-20,5,main] Finished 3 on Thread[Thread-19,5,main] Finished 1 on Thread[Thread-17,5,main] Finished 2 on Thread[Thread-18,5,main] ``` Are you using the September 16 release? You almost...
[ 0.0028063973877578974, -0.08323264122009277, 1.1367161273956299, -0.15742433071136475, -0.06396026164293289, -0.14467884600162506, 0.4476395845413208, -0.15319077670574188, -0.4429779350757599, -0.42679688334465027, -0.19650794565677643, 0.3693828880786896, -0.29774096608161926, 0.41057151...
I am working on a basic Struts based application that is experience major spikes in memory. We have a monitoring tool that will notice one request per user adding 3MB to the JVM heap memory. Are there any tips to encourage earlier garbage collection, free up memory or improve performance? The application is a basic S...
[ 0.31929662823677063, 0.03827111795544624, -0.01245229784399271, 0.15214529633522034, -0.32669883966445923, -0.04638415202498436, 0.20298947393894196, -0.2880929708480835, -0.3138734698295593, -0.6327942609786987, 0.3253343105316162, 0.32293224334716797, -0.3700651228427887, -0.124029062688...
a row. 3. Add a row to an array list. 4. Set the array list to the form object when the action is invoked. 5. The JSP logic will iterate through the list from the ActionForm and the data is displayed to the user. Notes: 1. The form is in session scope and possibly that array list of data (maybe this is an issue). ...
[ 0.11498697102069855, -0.2730027437210083, 0.5443767309188843, -0.16366297006607056, -0.41768866777420044, -0.11949413269758224, 0.30004721879959106, -0.4759427607059479, -0.12619273364543915, -0.35858166217803955, -0.23967283964157104, 0.713770866394043, -0.3944145739078522, -0.49762606620...
reports to be rendered in web application, consider the number of records fetched from database. If the number of records is high and the overall recordset is taking lot of memory, then consider using pagination of report. As far as possible donot invoke garbage collector explicitly. This is so because of two reasons...
[ 0.3459072411060333, 0.051808930933475494, -0.007694290950894356, 0.19634048640727997, -0.26462507247924805, -0.08381068706512451, 0.09187444299459457, -0.17747104167938232, -0.1454981416463852, -0.6545030474662781, 0.05556605011224747, 0.674976110458374, -0.1302904337644577, 0.026168104261...
I see the following code in the attribute\_fu plugin: ``` module AttributeFu module Associations #:nodoc:
[ 0.020154017955064774, 0.009331487119197845, 0.5848731398582458, -0.27532652020454407, 0.21280537545681, -0.2644703686237335, -0.07597000896930695, -0.3178560435771942, -0.14551866054534912, -0.31778091192245483, -0.15027816593647003, 0.8811292052268982, 0.029919661581516266, 0.000682050536...
def self.included(base) #:nodoc:
[ 0.1087929978966713, -0.012433534488081932, 0.1533084660768509, -0.05535142123699188, -0.03773515671491623, -0.04861908778548241, 0.34553349018096924, -0.753728985786438, -0.1606256365776062, -0.0793428048491478, -0.09312723577022552, 0.7426181435585022, -0.2876851558685303, -0.206419214606...
[ -1.06126070022583, -0.7003979086875916, -0.42257601022720337, 0.09815213829278946, -0.49541836977005005, 1.143049955368042, 0.859436571598053, 1.0905910730361938, -0.6481311917304993, -0.4323035180568695, 0.5117040276527405, -0.018845291808247566, 0.3492005467414856, -0.2664911150932312, ...
base.class_eval do extend ClassMethods class << self; alias_method_chain :has_many, :association_option; end class_inheritable_accessor :managed_association_attributes write_inheritable_attribute :managed_association_attributes, []
[ -0.14222002029418945, -0.07251574844121933, 0.04599558934569359, -0.012243986129760742, 0.11108043044805527, -0.21378207206726074, 0.20646555721759796, -0.28040745854377747, -0.20447099208831787, -0.4742293059825897, -0.011085020378232002, 0.3934870660305023, -0.3677154779434204, 0.1764032...
after_update :save_managed_associations end end ... end end ``` When I try to replace ``` class << self; alias_method_chain :has_many, :association_option; end ``` with: alias\_method\_chain :has\_many, :association\_option? I get the following error ``` /usr/lib/ruby/gems/1.8/g...
[ -0.09518266469240189, 0.00022790343791712075, 0.3316102921962738, -0.32711973786354065, 0.194488525390625, -0.0651882141828537, 0.5958611369132996, -0.4788345396518707, -0.2503404915332794, -0.4573040008544922, -0.2715124189853668, 0.7591092586517334, -0.4319983124732971, 0.027162507176399...
it looks like I'm wrong. Can somebody explain my error? ``` # init.rb ActiveRecord::Base.class_eval { include AttributeFu::Associations } module AttributeFu module Associations def self.included(base) # base == ActiveRecord::Base (the class) base.class_eval do # clas...
[ 0.0012340530520305037, 0.25440800189971924, 0.04372458532452583, -0.22441115975379944, -0.12788407504558563, 0.021832609549164772, 0.5037896037101746, -0.6029196977615356, -0.2000543177127838, -0.19336077570915222, 0.16632692515850067, 0.7270479798316956, -0.5329593420028687, -0.0331226773...
extend ClassMethods # If has_many were an instance method, we could do this # alias_method_chain :has_many, :association_option; end # but it's a class method, so we have to do the alias_method_chain on # the meta-class for
[ 0.182589590549469, -0.29467740654945374, 0.2649124264717102, 0.0504685677587986, -0.07945435494184494, -0.4576401114463806, 0.37181031703948975, -0.35004785656929016, -0.03635336831212044, -0.5196833610534668, 0.12066496908664703, 0.7859335541725159, -0.44929996132850647, -0.00121728598605...
ActiveRecord::Base, which is what class << self does. class << self; alias_method_chain :has_many, :association_option; end end end end end ``` Another way to play around with this is to put this into IRB: ``` class A ; end A.class_eval { puts self.inspect ; class << self ; pu...
[ -0.5054730176925659, -0.19741547107696533, 0.5149775743484497, -0.3177591860294342, -0.2443581521511078, -0.044711045920848846, 0.44345808029174805, -0.4840105175971985, -0.41383346915245056, -0.38173016905784607, -0.09357616305351257, 0.7633748650550842, -0.48034796118736267, -0.159444496...
I want to play a movie file or any animation file till the time application not loaded completely. Is there any simple way to do it? You have to think carefully about if you really want to do this. On a hardware limited device, loading a movie is going to increase load times, not reduce them as should be your goal. ...
[ 0.8006697297096252, -0.12313337624073029, 0.41653138399124146, 0.19906315207481384, 0.11426077038049698, -0.33605068922042847, 0.0014913601335138083, 0.07784944772720337, -0.2142341285943985, -0.3952220380306244, 0.009784039109945297, 0.7982445955276489, -0.21643507480621338, 0.17783555388...
very long operation during load that you absolutely can't avoid before showing a functional UI, I think the best bet might be to whip up a quick 'loading' animation using Core Animation layers. Maybe there's a better way to do it but in my experience loading the movie player takes time.
[ 0.28753650188446045, -0.11206849664449692, 0.20201152563095093, 0.36554333567619324, -0.09966642409563065, -0.26966992020606995, 0.011895677074790001, 0.007833266630768776, -0.3084518611431122, -0.32612669467926025, 0.05798555165529251, 0.8752270340919495, 0.16899709403514862, -0.075662225...
I'm developing a Django app, and I'm trying to use Python's logging module for error/trace logging. Ideally I'd like to have different loggers configured for different areas of the site. So far I've got all of this working, but one thing has me scratching my head. I have the root logger going to sys.stderr, and I have...
[ 0.39824262261390686, 0.3265705108642578, 0.337281733751297, -0.3569668233394623, -0.09466062486171722, -0.11082269996404648, 0.44715428352355957, -0.09417366981506348, -0.3800562918186188, -0.8094106316566467, -0.050853632390499115, 0.5568952560424805, -0.5531114935874939, -0.0697987377643...
prints it once. It's like addHandler() is being called twice. And when I put my code through a debugger, this is exactly what I see. The code in settings.py is getting executed twice, so two FileHandlers are created and added to the same logger instance. But why? And how do I get around this? Can anyone tell me what's...
[ 0.8258127570152283, -0.06338711827993393, 0.14469395577907562, 0.0213769618421793, -0.013218778185546398, -0.042894359678030014, -0.0919671356678009, -0.12610676884651184, -0.7379791140556335, -0.6879895329475403, 0.4561339020729065, 0.26456350088119507, -0.4456474184989929, -0.02834875509...
only the root logger, and I'd prefer to have multiple loggers. Allow me to answer my own question. The underlying problem here is that settings.py gets imported twice, or maybe even more (See [here](http://www.mail-archive.com/django-users@googlegroups.com/msg39059.html)). (I still don't understand why this is. Maybe s...
[ 0.12074277549982071, 0.04185411334037781, 0.007283249404281378, -0.022157447412610054, -0.13818474113941193, -0.16247346997261047, 0.26092463731765747, 0.014620792120695114, -0.5698266625404358, -0.690661609172821, 0.09235414862632751, 0.5487608313560486, -0.28934040665626526, 0.0186187699...
are similar. You have to code around this. That is, you have to check your logger for existing handlers before adding additional handlers to it. This is a bit ugly because it's perfectly reasonable to have multiple handlers -- even of the same type -- attached to one logger. There are a few solutions to dealing with t...
[ 0.5357539057731628, -0.04281966760754585, -0.19857659935951233, 0.12181029468774796, -0.18449270725250244, -0.11766306310892105, 0.1944911926984787, -0.2945762872695923, -0.42580655217170715, -0.6748962998390198, 0.365004301071167, 0.29647061228752136, -0.6492195129394531, 0.06778455525636...
to Thomas Guettler): ``` # file logconfig.py if not hasattr(logging, "set_up_done"): logging.set_up_done=False def set_up(myhome): if logging.set_up_done: return # set up your logging here # ... logging.set_up_done=True ``` I must say, I wish the fact that Django imports settings.py mult...
[ 0.704669713973999, 0.630660355091095, 0.13603785634040833, -0.06265153735876083, 0.18959425389766693, -0.17406083643436432, 0.3311159908771515, -0.09564879536628723, -0.7409861087799072, -0.49412620067596436, -0.3554384112358093, 0.6005600690841675, -0.34571439027786255, -0.000184084870852...
sort of thing you need to warn your users about.
[ 0.5627995133399963, 0.12131647765636444, -0.08307424932718277, 0.15893441438674927, 0.17137515544891357, -0.290438175201416, 0.12493162602186203, 0.7362173199653625, -0.2620433568954468, -0.1908574253320694, 0.11044039577245712, 0.3174176812171936, 0.010999225080013275, -0.0562091358006000...
Given an instance `x` of `Callable<T>`, how can I run `x` in a separate process such that I can redirect the standard input and output of the process? For example, is there a way to build a `Process` from a `Callable`? Is there a standard `Executor` that gives control over input and output? [UPDATE] It's not important...
[ 0.21910403668880463, -0.010846533812582493, -0.16313958168029785, 0.11424802243709564, -0.1030544638633728, 0.15191200375556946, 0.13363845646381378, -0.07872899621725082, -0.19881312549114227, -0.6386772394180298, -0.11795708537101746, 0.41003429889678955, -0.4853827655315399, 0.328025490...
x of Callable utilizing global variables A and B, how can I run x concurrently such that x sees custom values for A and B, rather than the "original" values of A and B? And the best answer is, don't use global variables. Dependency inject things like that. Extend Callable and add methods setStdIn, setStdOut (and setSt...
[ 0.2844195067882538, -0.08688954263925552, 0.18922758102416992, 0.10196934640407562, -0.26904115080833435, -0.14841696619987488, -0.015124688856303692, -0.2343624085187912, -0.0863821730017662, -0.4360858201980591, -0.20261436700820923, 0.5523611903190613, -0.7949987649917603, 0.07278340309...
the Callable so it is serializable, or provides a class name, or some other hack, so instead of making changes that will give you a nasty, brittle solution, just do it right\* \* "right" being to use the widely accepted pattern of dependency injection to provide loose coupling. YMMV UPDATE: In response to comment 1. ...
[ 0.11611408740282059, -0.34439679980278015, 0.8160209059715271, 0.07288383692502975, 0.024083618074655533, 0.023573540151119232, 0.10181013494729996, -0.2202819287776947, -0.09430132061243057, -0.671532154083252, -0.34285953640937805, 0.5880529880523682, -0.7240703701972961, 0.1992191523313...
PrintStream out = System.out; public void setStdIn(InputStream in) { this.in = in; } public void setStdOut(PrintStream out) { this.out = out; } public Object call() throws Exception { out.write(in.read()); return null; } ``` } No need for a process. Any solu...
[ -0.07619311660528183, -0.06720279157161713, 0.44219762086868286, -0.17256256937980652, 0.08445654809474945, 0.2733035087585449, 0.13160847127437592, -0.31294095516204834, -0.4035160541534424, -0.6775118112564087, -0.18553254008293152, 0.25335457921028137, -0.5862208604812622, 0.08461587131...
some way. This is the simplest (just replace System.out with this.out).
[ 0.4529483914375305, 0.018974658101797104, 0.3428134620189667, 0.22258208692073822, 0.14649249613285065, 0.23613250255584717, 0.02661958895623684, -0.06038345396518707, 0.013380506075918674, -0.6093608736991882, 0.03498222678899765, 0.11162452399730682, -0.4360804855823517, 0.16717204451560...
I have many requires and includes and i was wondering if there's something that can help me look at the whole of php code when a webpage is loaded. the reason i'm asking is that after fiddling with some code i cannot put any php code anymore as it will not be "sensed" by the compiler. like if i put anything inside the ...
[ 1.0375995635986328, 0.09425239264965057, 0.04358235001564026, 0.3214460611343384, -0.22130349278450012, -0.23022517561912537, 0.19718721508979797, -0.22300618886947632, -0.4836219251155853, -0.3554825186729431, 0.37809091806411743, 0.5536642074584961, -0.20672374963760376, 0.21831794083118...
of all of the files php has loaded at that point. You may also find using grep or the "find in files" function in your editor (if it has one) can help you track down something in the code that you know is there any can't find. And finally, the errors thing - call the following functions at the top of your script to m...
[ 0.25328153371810913, 0.1697819083929062, 0.33283698558807373, 0.28812897205352783, 0.003319474635645747, -0.21013620495796204, 0.26599401235580444, 0.11757566779851913, -0.11934579908847809, -0.7388191819190979, 0.11303407698869705, 0.8199282884597778, -0.3040279150009155, -0.2262565642595...
aid anyone looking to compromise your system. So.... not sure of the question, but I've answered what I think it might be.
[ 0.5328289866447449, 0.4423447251319885, 0.06782848387956619, -0.0982319712638855, -0.037779778242111206, -0.26556098461151123, 0.6437143087387085, 0.054420314729213715, 0.33909937739372253, -0.6307579874992371, 0.32926684617996216, 0.39145517349243164, 0.05204005539417267, -0.1474996507167...
How do you run a scheduled task with Quest powershell snap in? You would schedule PowerShell.exe, and use one of its command-line parameters to specify the script to run. At the start of that script, add: Add-PSSnapin Quest.ActiveRoles.ADManagement That will load the snapin for that script, and then execute whatever ...
[ 0.03704999387264252, -0.5957359671592712, 0.20062778890132904, 0.12441366165876389, 0.12325187772512436, -0.18846121430397034, 0.2395341396331787, -0.18687063455581665, -0.2345314621925354, -0.558574914932251, -0.29870572686195374, 0.7985401749610901, -0.2819076478481293, -0.62355220317840...
Is it possible to read the data in the php $\_SESSION array in the .htaccess file in Apache? So say I have the following: ``` $_SESSION['foo'] = 'bar'; ``` could I then in .htaccess do something like: ``` RewriteRule bla.png folder/{the php session var foo}/file.png ``` Is that possible? I already have a working...
[ 0.4896060824394226, 0.29017356038093567, 0.32237327098846436, 0.049728963524103165, 0.012573500163853168, -0.21098653972148895, 0.33366110920906067, -0.15081658959388733, -0.08461613208055496, -0.35646575689315796, 0.3147216737270355, 0.6444743871688843, -0.2690889537334442, -0.05153522267...
Can all .NET exception objects be serialized? Yes and no. As Jeff and others have pointed out, the all exception classes should and almost always are serializable. If you run across a particular exception class that is not serializable, it is quite possibly a bug. But when considering serializability you need to cons...
[ 0.06798069924116135, -0.15553443133831024, -0.01785239763557911, 0.32580897212028503, -0.02331426739692688, -0.4251357614994049, 0.4148576855659485, 0.14955438673496246, -0.4806668758392334, -0.6955739259719849, -0.3155227601528168, 0.19955871999263763, -0.5729185342788696, 0.3286550343036...
If this object is not serializable then serialization of the Exception will fail. The default implementation of the Data property does do some basic checking to ensure an object being added is serializable. But it is flawed in several ways * Only does top level checking for serializability of a type and this check i...
[ -0.3717805743217468, 0.04806533828377724, 0.20671367645263672, 0.35997116565704346, 0.058957990258932114, -0.2769160866737366, 0.6706490516662598, -0.013632361777126789, -0.3166485130786896, -0.6176261901855469, -0.17019425332546234, 0.2996618449687958, -0.17884275317192078, 0.403634458780...
Anybody ever had the error "Installation of the "Microsoft Expression Web 2" product has reported the following error: -2147024873.. " when trying to install Microsoft Expression Web 2 or Microsoft Expression Studio? This is the error I'm getting, but I can't figure out what the problem is. I have no beta or RC or pre ...
[ 0.2216092199087143, 0.25504830479621887, 0.17512860894203186, -0.020713424310088158, 0.05462048575282097, -0.5182023644447327, 0.6643669605255127, 0.10751842707395554, 0.09820174425840378, -0.694287121295929, -0.1860833317041397, 0.9441894292831421, -0.43827247619628906, -0.249299451708793...
"{90120000-0115-0409-0000-0000000FF1CE}-C" resource "Setup.xml". Cache Error 0x80070017<br> Source Resolution aborted<br> LIS: start caching file "Setup.xml"<br> LIS failed to cache download "{90120000-0115-0409-0000-0000000FF1CE}-C" resource "branding.xml". Cache Error 0x80070017<br> Source Resolution aborted<br> ...
[ -0.5235650539398193, 0.21207039058208466, 0.3965606987476349, -0.05311058089137077, -0.07037314027547836, 0.11414071172475815, 0.6174895763397217, -0.4209267199039459, -0.2096562534570694, -0.5285905599594116, -0.2666272819042206, 0.8066979050636292, 0.042277656495571136, 0.114974930882453...
Rolling back package: OfficeMUI.en-us<br> There appears to be no rollback work to do for package: OfficeMUI.en-us path: C:\Documents and Settings\chaj17\Local Settings\Temp\XSetup_Web_2008_12_4_16_1_21\438d1ac8_d88e_46eb_ba69_11fef34cce74\Office.en-us\OfficeMUI.MSI<br> Stopping running ose<br> LIS: start uncaching for ...
[ -0.648295521736145, 0.16230957210063934, 0.7545192241668701, 0.061230700463056564, -0.22023697197437286, 0.3203440010547638, 0.06643528491258621, -0.05636041611433029, -0.0505249910056591, -0.372482031583786, -0.6014705300331116, 0.5332369208335876, 0.026472756639122963, 0.1251616775989532...
2" product has reported the following error: -2147024873.<br> Info: Config_Products_InstallNew: End installation of new product: Microsoft Expression Web 2<br> Error: Config_Products_Install: Installation of Product Microsoft Expression Web 2 (failed): Installation of the "Microsoft Expression Web 2" product has report...
[ -0.14684291183948517, 0.24892787635326385, 0.4727989435195923, -0.2998817265033722, 0.08373604714870453, -0.27935877442359924, 0.8475745916366577, -0.18171092867851257, 0.08985067903995514, -0.7407315969467163, -0.6081268191337585, 0.6967452168464661, -0.3844150900840759, -0.22624923288822...
at XSetup.XSetupSession.OnDoTasksThreadDoWork(Object sender, DoWorkEventArgs e)<br> Error: Installation of the "Microsoft Expression Web 2" product has reported the following error: Installation of the "Microsoft Expression Web 2" product has reported the following error: -2147024873..<br> Info: End Setup session<br> -...
[ -0.403097003698349, 0.397108256816864, 0.42173683643341064, -0.2195214033126831, 0.0775594636797905, -0.15285149216651917, 0.641052782535553, 0.03511689603328705, 0.069272980093956, -0.631941556930542, -0.5222602486610413, 0.9616134762763977, -0.1954759657382965, -0.22162438929080963, 0....
out, the all exception classes should and almost always are serializable. If you run across a particular exception class that is not serializable, it is quite possibly a bug. But when considering serializability you need to consider both the immediate class and all types which are members of this type (this is a recu...
[ -0.09100621938705444, -0.016091201454401016, 0.1426960974931717, 0.04929422587156296, 0.109099380671978, -0.3501666188240051, 0.2807080149650574, -0.009333048947155476, -0.5942366123199463, -0.6379491090774536, -0.33704620599746704, 0.14701220393180847, -0.5221396684646606, 0.3309709131717...
implementation of the Data property does do some basic checking to ensure an object being added is serializable. But it is flawed in several ways * Only does top level checking for serializability of a type and this check is only done by checking Type.IsSerializable (not a 100% solid check). * The property is virtual....
[ -0.31368812918663025, -0.024756411090493202, 0.16811659932136536, 0.35158005356788635, 0.015775537118315697, -0.30380743741989136, 0.6516263484954834, -0.08331137895584106, -0.3302494287490845, -0.5622085928916931, -0.18367356061935425, 0.17425478994846344, -0.3013485074043274, 0.269714951...
How do you manage your database connections in your ASP.Net application? My understanding tells me the "best" way is to open a connection, make a query, close the connection - and do that multiple times because connection pooling makes the cost negligable. The problem comes when I have a DAL where each method looks a...
[ -0.018843742087483406, -0.11781392246484756, 0.3951290547847748, 0.13266679644584656, -0.014105726033449173, -0.11675858497619629, 0.00397787569090724, -0.10973597317934036, -0.42676565051078796, -0.7679023742675781, 0.021375400945544243, 0.280105322599411, -0.311297744512558, 0.2776454985...
the connection because of the way I am managing security (execute as / revert) and I don't want to have to make a call on every page to do that because someone will forget to make the call. I could also pass the connection into each method but thats not ideal because the page has to manage a connection. Am I making se...
[ 0.2239818274974823, 0.01979409158229828, 0.0923432931303978, 0.296122282743454, -0.24155624210834503, -0.2822185754776001, 0.44506967067718506, -0.01885758526623249, -0.15228970348834991, -0.5442860126495361, 0.12297920137643814, 0.5295029282569885, -0.32422178983688354, 0.4315508008003235...
which would make this problem go away. Until then what we did was to develop our TransactionScope, our DALs would then ask the TS for a new connection, and when we disposed the TS it would close the connection. The connections were stored in LogicalCallContext, although I would look at using HTTP Context instead. I...
[ 0.05740339308977127, -0.06604483723640442, 0.8235443830490112, 0.006604167632758617, 0.004591434262692928, -0.06543056666851044, -0.14252886176109314, 0.09865294396877289, -0.43610620498657227, -0.4373568296432495, 0.20185472071170807, 0.49784135818481445, -0.29244956374168396, 0.269500643...
Any idea why the following code doesn't print the amount of characters in the input? I've taken this straight from the K&R book. Learning C at the moment and this is really confusing, looks to me like I'm never reaching EOF. If that's the case then why would this be used as an example? ``` #include <stdio.h> main() {...
[ -0.0207513514906168, 0.17030006647109985, 0.27926647663116455, -0.02532040700316429, 0.17050018906593323, -0.039690181612968445, 0.3548586964607239, 0.07898656278848648, -0.2006179839372635, -0.444551944732666, -0.31117740273475647, 0.5584201812744141, -0.28521689772605896, 0.0524808056652...
after your input since the standard input is treated as a file. I think in a linux terminal you can press Ctrl+D to send `EOF`... I'm not sure how to do it in other OS's. To test this program you might want to change `EOF` to `'\n'` which will cause it to stop when you press enter.
[ -0.21368712186813354, 0.09247660636901855, 0.6190582513809204, -0.32320308685302734, 0.06792276352643967, 0.004599822219461203, 0.1699143648147583, 0.3649577796459198, -0.045155543833971024, -0.8483556509017944, -0.33797815442085266, 0.6776585578918457, -0.2328898310661316, 0.1795187741518...
I've inherited a legacy web application that has no unit tests in it. I'd like to add some, but am at a loss of where to start. Should I add them to old code? Or just new code going forward? What if that code interacts with legacy code? What would you suggest? First, I would recommend unit testing all changes going for...
[ 0.5470184683799744, 0.09353110194206238, -0.1864422708749771, 0.23873081803321838, 0.3557423949241638, -0.12320476025342941, -0.0012985108187422156, -0.10077414661645889, -0.06580518186092377, -0.6434763073921204, 0.4264206886291504, 0.3741169273853302, 0.08109410852193832, 0.4561499357223...
the product. The problem is that when you start to unit test an existing code base, you're going to soon realize many opportunities for refactoring and design refinement. Take it from me, if you're a stickler for good design, but you haven't been empowered to make drastic refactoring descisions, you're only going to ...
[ 0.6906025409698486, 0.49549540877342224, -0.03735236078500748, 0.18244585394859314, 0.1923026293516159, 0.1999654918909073, 0.055818118155002594, -0.18975117802619934, 0.05056026577949524, -0.30495941638946533, 0.011036223731935024, 0.5120519995689392, 0.19546419382095337, 0.33894982933998...
end up implementing something we like to call the "garbage adapter pattern". Good luck!
[ 0.716636598110199, 0.04170261695981026, 0.24139580130577087, 0.2595008909702301, 0.0870475172996521, -0.581218421459198, 0.4869028329849243, 0.7415528893470764, -0.035642847418785095, -0.46589815616607666, 0.23743870854377747, 0.07378263771533966, 0.14303457736968994, -0.009166947565972805...
I have very little experience building software for Windows, and zero experience using the Windows API, but I'm reasonably familiar with Python. How should I go about learning to use the Windows API with Python? Honestly, no. The Windows API is an 800 pound monster covered with hair. [Charlie Petzold's 15 pound book](h...
[ 0.8385598063468933, 0.18656085431575775, 0.021548332646489143, 0.02828616090118885, 0.2075863927602768, 0.11308994144201279, 0.31606677174568176, -0.07929414510726929, -0.4629742503166199, 0.06775598973035812, 0.1748371720314026, 0.3067379593849182, -0.04508986696600914, -0.142097696661949...
When creating links for an an html based email, how critical is it to use absolute links? Also, What are the benefits in using relative links in general? Relative links allow you use less code to traverse your structure, and they allow you to move domains without having to do any extra work. You simply copy your direct...
[ 0.09952351450920105, -0.039510905742645264, 0.7754300236701965, 0.43788859248161316, -0.10991071909666061, -0.22446659207344055, 0.3116520643234253, 0.0849611833691597, -0.2959311008453369, -0.8048562407493591, -0.05382325500249863, 0.6398097276687622, -0.2757189869880676, 0.02404361218214...
you have to be cognizant of. Luckily the [Holy War](http://www.search-this.com/2008/01/16/2-minute-seo-tip-absolute-vs-relative-links/) isn't as big as other [programming holy wars](http://www.google.com/search?hl=en&q=Programmer+Holy+wars&btnG=Google+Search&aq=f&oq=). For Email, your only real choice are absolute li...
[ 0.12058688700199127, 0.22279246151447296, 0.712124764919281, 0.23199070990085602, -0.16978400945663452, -0.17852996289730072, 0.5493921041488647, 0.06504946947097778, -0.3228242099285126, -0.46591222286224365, -0.36052703857421875, 0.7496910691261292, 0.0028183290269225836, -0.100426107645...
Would anyone happen to know how to convert type `LPTSTR` to `char *` in C++? Depends if it is Unicode or not it appears. LPTSTR is char\* if not Unicode, or w\_char\* if so. [Discussed better here](http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/1b994ff3-da28-46a8-90ef-6c7fab8dcd21/) (accepted answer w...
[ -0.27317169308662415, 0.03829937055706978, 0.44599124789237976, 0.07749346643686295, 0.16968850791454315, 0.20479708909988403, -0.14576666057109833, 0.17316888272762299, -0.5491307377815247, -0.389818012714386, -0.16959461569786072, 0.3539518117904663, -0.17416468262672424, 0.0236252155154...
How do I download a file from the internet in a Flex based AIR application. I tried using a file with url set to the address, but I got a file does not exist error when I tried to save it. And it is really hard to google for help on this issue. You want to choose from 2 api combos to accomplish this. Version 1 is UR...
[ 0.3709678649902344, -0.2494886964559555, 0.4362761378288269, 0.21813684701919556, -0.09775574505329132, -0.3471479117870331, -0.17843502759933472, 0.04744073003530502, -0.16902081668376923, -1.0363279581069946, -0.05421287938952446, 0.5939638614654541, -0.34782102704048157, 0.2898563742637...
the download is complete. Make sure you initiate the download with a dataFormat of URLLoaderDataFormat.BINARY. You would then initiate a Filestream object and write it out to the disk using writeBytes(). Version 2 is URLStream and FileStream URLStream is very similar to URLLoader, but instead of waiting for the file ...
[ -0.0874427855014801, -0.28529638051986694, 0.8634960651397705, 0.056635014712810516, 0.030651964247226715, -0.3926553428173065, -0.013486076146364212, 0.13974767923355103, -0.3492339551448822, -0.6794247031211853, -0.34504884481430054, 0.7204164266586304, 0.07042393088340759, 0.31434100866...
to you it can release the memory related to that data. YOu would use filestream in exactly the same way, you would just end up doing a writeBytes() on each chunk of the file as it streams in.
[ 0.2440035045146942, -0.17326705157756805, 0.3096226751804352, 0.2235349714756012, 0.08843295276165009, -0.06942716240882874, -0.09720616042613983, 0.1768183410167694, -0.12436870485544205, -0.5608825087547302, 0.05921753868460655, 0.38132244348526, 0.17021645605564117, 0.31077978014945984,...
I have a custom error page set up for my application: ``` <customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx" /> ``` In Global.asax, Application\_Error(), the following code works to get the exception details: ``` Exception ex = Server.GetLastError(); if (ex != null) { if (ex.GetBas...
[ -0.25334393978118896, 0.4577867388725281, 0.6499475240707397, -0.3347655236721039, 0.0771997794508934, 0.05645746365189552, 0.5128357410430908, 0.12816494703292847, -0.23230159282684326, -0.7828160524368286, 0.02841615304350853, 0.632638692855835, -0.15533019602298737, 0.3106105327606201, ...
more closely at my web.config set up, one of the comments in [this post is very helpful](http://msdn.microsoft.com/en-us/library/vstudio/h0hfz6fc(v=vs.100).aspx) > in asp.net 3.5 sp1 there is a new parameter redirectMode So we can amend `customErrors` to add this parameter: ``` <customErrors mode="RemoteOnly" defaul...
[ -0.32688024640083313, -0.04999014362692833, 0.6511756777763367, 0.004478509072214365, -0.25349438190460205, -0.11403806507587433, 0.5092335939407349, 0.024672284722328186, -0.33058151602745056, -0.6916715502738953, -0.07572019845247269, 0.7119436860084534, -0.06148439645767212, 0.391685098...
Javascript I have code that will hide various sections in a MS CRM form based on the value of a Picklist. The code executes in the onChange event of the Picklist. It hides the section by referencing a field in the section and then navigating up the DOM using the ParentElement syntax, as such: crmForm.all.fieldName.pa...
[ 0.08981788903474808, 0.19787152111530304, 0.20771068334579468, -0.3513756990432739, -0.22030676901340485, -0.021243680268526077, 0.4975832402706146, -0.008116045966744423, -0.1922173798084259, -0.5363056659698486, -0.1772482842206955, 0.2618076801300049, -0.31966471672058105, 0.03006178513...
it uses section position instead of parentElement. <http://mscrm4ever.blogspot.com/2008/08/show-hide-crm-form-section.html>
[ -0.2059701383113861, -0.19540494680404663, 0.5718774199485779, -0.12802176177501678, -0.1819847822189331, -0.20145095884799957, -0.02111581340432167, 0.08960599452257156, -0.4955305755138397, -0.001342159928753972, -0.37625807523727417, -0.3138546645641327, -0.22134140133857727, 0.45853191...
I am writing a client-side validation function for [CustomValidator](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx) and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and trailing spaces from the string. What i...
[ 0.28730055689811707, 0.1653621792793274, 0.6643608808517456, 0.04638785868883133, -0.037171609699726105, -0.17098747193813324, 0.32700619101524353, -0.33480215072631836, -0.11471590399742126, -0.33970943093299866, 0.23307977616786957, 0.549700140953064, -0.017873309552669525, -0.0591813474...
would prolly go through jQuery, or add your own function as J Cooper points out.
[ 0.1861838400363922, 0.07098297029733658, 0.3150535821914673, 0.05945037677884102, 0.09379839897155762, 0.24732565879821777, -0.16544073820114136, 0.1258709877729416, -0.08114241808652878, -0.25591593980789185, -0.17760604619979858, 0.5749859809875488, 0.11867845058441162, -0.08954785019159...
My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will have the individual hours spent for that day on that task. ...
[ 0.2543487250804901, 0.15060319006443024, 0.1841261088848114, 0.2540266513824463, 0.0501721166074276, 0.1615954339504242, -0.29182466864585876, -0.01581297442317009, -0.3892166316509247, -0.4458180367946625, 0.03351776674389839, 0.2530207931995392, -0.22973565757274628, 0.13508878648281097,...
raw data from a Tasks and TimeEntries and structure it correctly. Option three is to use LINQ and pull the results into a class (or collection), which is then bound to the control (probably a gridview). How would you do this? I'll take a rough hack at it not knowing your structure but guessing you have a task table an...
[ 0.1271008998155594, -0.6570394039154053, 0.3615683913230896, 0.2691091001033783, 0.08800094574689865, 0.1379300355911255, -0.07393436133861542, -0.309752494096756, -0.24956461787223816, -0.5265350341796875, 0.03239774703979492, 0.45091909170150757, 0.2439948320388794, -0.045487746596336365...
tasktable t join tasktime tt on t.taskid = tt.taskid where tt.taskdate >= @begindate and tt.taskdate<= @enddate The where clause is important because you probably only want to display a week at time (usually the current week) on your grid. This also assumes you have properly stored the ddates of your hours charged as...
[ 0.21070052683353424, -0.5572105050086975, 0.604653000831604, -0.09808433055877686, -0.13977499306201935, 0.03685232996940613, 0.11959616094827652, 0.16905751824378967, -0.5485909581184387, -0.8281151652336121, 0.16549716889858246, 0.4232499301433563, 0.1205553263425827, 0.2245570719242096,...
I think that business logic should exist in a model when using an MVC or MVP design pattern, but should be hidden behind a service in a service-oriented architecture. Can a software system use the MVC or MVP design pattern within a service-oriented architecture? If so, where does the model sit? Well they are totally d...
[ 0.27949008345603943, 0.029392242431640625, 0.09485535323619843, 0.020632242783904076, 0.042218130081892014, 0.05187902972102165, -0.13469409942626953, -0.07929976284503937, -0.3941255509853363, -0.22816531360149384, -0.04711170867085457, 0.5797194838523865, -0.23766444623470306, 0.13162425...
pattern to build up your model with data from a SOA service. On the service side, as there is no presentation and no user dialog, most of the MVC pattern becomes redundant. Furthermore, good SOA design should concentrate on providing a useful service regardless of the underlying data store, so the "model" part becomes...
[ 0.15751193463802338, -0.08018326759338379, 0.4300050735473633, 0.08395170420408249, 0.06195264309644699, -0.20366612076759338, 0.5337567925453186, -0.1721179485321045, -0.3577072322368622, -0.6836861371994019, -0.16444797813892365, 0.3402867317199707, -0.5026006698608398, -0.01368609536439...
How do you estimate the time needed to implement a user story? If it's something you had done before you know how long it'll take. But what about if it's completely new to you? How much time do you reserve for "surprises"? A great technique for this is to break the story down to somewhat smaller tasks, and estimate the...
[ 0.3379910886287689, -0.16919156908988953, -0.2667788565158844, 0.5369709134101868, -0.002659559715539217, 0.11588942259550095, 0.2572952210903168, -0.33137694001197815, -0.41716185212135315, -0.5623670816421509, 0.16829675436019897, 0.5313408374786377, 0.33674356341362, -0.2461713403463363...
at estimating relative complexity than absolute complexity. Then you actually perform one of the tasks, and figure out how much "real time" it takes you to implement 1 unit - now you can calculate all the tasks. You keep updating your estimates according to how you progress. This technique is from [Agile Estimating an...
[ -0.2262410670518875, -0.1936512291431427, -0.2960854172706604, -0.04660986363887787, 0.2511156499385834, 0.39211326837539673, 0.04834241792559624, -0.3850885033607483, -0.27419474720954895, -0.63758385181427, 0.2741384208202362, 0.7740062475204468, -0.12096700817346573, -0.2291999459266662...
I found the [Computational Geometry Algorithms Library](http://www.cgal.org/) in my search for an algorithm to decompose a concave polygon into the minimum number of convex components. Links off the site and numerous google results indicate there are python bindings for it, which would be really handy, but all the link...
[ -0.0020811513531953096, 0.37898966670036316, 0.31168821454048157, -0.006165928672999144, -0.18643251061439514, 0.28842464089393616, -0.04333888366818428, 0.09319958090782166, -0.2827216386795044, -0.4955134689807892, 0.21343612670898438, 0.40996742248535156, -0.23621951043605804, 0.3269037...
is it possible to convert their method to scrum in a small concern Two best practices of Scrum are : * Grouping your staff in small teams. * Keeping communication quick and efficient (especially meetings). So yeah, definitely, Scrum fit a small organization. In fact, as a small organization, you need less REorganizat...
[ 0.4321073889732361, -0.06963475793600082, -0.04162738099694252, -0.1962813287973404, -0.01524827629327774, -0.35202381014823914, 0.4692186415195465, -0.2553568482398987, -0.5725493431091309, -0.5162458419799805, 0.10979091376066208, 0.3544471561908722, 0.02708408050239086, -0.4680165350437...
If I am storing the Subversion user names and passwords for repository access in a text file in the `conf` folder, what is the maximum length of the passwords I can use? That is to say, how long can the secrets in the following file be? ``` [users] harry = harryssecret sally = sallyssecret ``` If you are using `svnse...
[ 0.2492646872997284, -0.0060094743967056274, 0.5162540078163147, 0.01259048841893673, -0.09036639332771301, -0.39539816975593567, 0.2783246636390686, 0.04026708006858826, -0.27315303683280945, -0.23551778495311737, -0.10612951964139938, 0.7146584391593933, 0.21530567109584808, 0.17137658596...
The client uses the MD5 hash algorithm to create a fingerprint of the data and password combined, and then sends the fingerprint as a response. The server performs the same computation with the stored password to verify that the result is identical. At no point does the actual password travel over the network. IMHO, i...
[ -0.04814120754599571, 0.022582756355404854, 0.5494508743286133, 0.12613724172115326, 0.12442538887262344, 0.009844289161264896, 0.12142327427864075, -0.20780763030052185, -0.20161324739456177, -0.4527992904186249, -0.09777113050222397, 0.4986898601055145, -0.1575818657875061, 0.16893608868...
A lot of OS projects I know (I am PHP developer) uses versions as milestones, but is this the best way? Should milestones mean something in process of project iterations (meaningfull names)? Are there any rules? Or maybe its totally subjective? In our development process, versions and milestones are something different...
[ 0.345185250043869, 0.18154272437095642, 0.1782427430152893, 0.2275349646806717, 0.006059023551642895, -0.2185349315404892, 0.2164553999900818, 0.3896295130252838, -0.5431840419769287, -0.695949912071228, 0.05428905785083771, 0.34331464767456055, 0.18437013030052185, 0.23817448318004608, ...
a company wide project management standard. We have * S-Gate: *Specified* * A-Gate: *Available* * V-Gate: *Verified* * R-gate: *Released* For iterative development, we basically repeat this cycle. From A to V gate is the alpha phase, from V to R is beta phase. For bigger projects we add milestones that relate to sp...
[ 0.40861326456069946, -0.1413680613040924, -0.07250245660543442, -0.027454670518636703, 0.16304314136505127, -0.1091914176940918, 0.09199436753988266, -0.414706289768219, -0.42005571722984314, -0.2262316197156906, -0.36478543281555176, 0.4553793966770172, 0.09629728645086288, 0.042698536068...
I'm currently busy implementing a filter of sorts for which I need to generate an INNER JOIN clausse for every "tag" to filter on. The problem is that after a whole bunch of SQL, I have a table that contains all the information I need to make my selection, but I need it again for every generated INNER JOIN This basic...
[ -0.2074861377477646, -0.03841817006468773, 0.24176232516765594, -0.37416109442710876, -0.03522047400474548, -0.011459417641162872, 0.40107500553131104, -0.43500077724456787, 0.04108617827296257, -0.9029240012168884, -0.01448800414800644, 0.6538829207420349, -0.6355047821998596, -0.10121432...