text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
inner exception may occur. While not exactly the exception you receive. Its worth a try. Patch is available as attachment to this note. \*\*Update 0:\*\*Only a guess. But I would suggest to look at threading issues. Is this all the stack? Can you post the part off the code where you call the sap code?
[ 0.20057803392410278, -0.0888000875711441, 0.11274649202823639, 0.19938123226165771, 0.08972569555044174, -0.11772067844867706, 0.32302606105804443, 0.3930248022079468, -0.20781151950359344, -0.6856395602226257, 0.1250738650560379, 0.530419111251831, -0.239329531788826, -0.23965996503829956...
I have several related CVS projects, and I'd like to move them into subdirectories of a single new project. Let's assume that everyone using the projects will delete their working copies before I make the change. Is it safe to just go into the repository directory and move the directories, as suggested [in the manual]...
[ 0.6177187561988831, -0.05487913265824318, 0.22888879477977753, 0.14487650990486145, 0.606562614440918, -0.28359028697013855, -0.2323417067527771, 0.029134096577763557, -0.40522831678390503, -0.5784041881561279, -0.044106051325798035, 0.6270485520362854, 0.007867751643061638, 0.200875222682...
(this is called a repocopy), and then deleting the files in their original locations through normal CVS commands. In this way even your change will be recorded as part of the history. Needless to say, keep a full backup of your CVS files before you do any changes,
[ 0.16266915202140808, -0.21348458528518677, 0.4922756850719452, 0.1437472105026245, 0.7830174565315247, -0.1280289888381958, 0.22667080163955688, 0.0170661062002182, -0.6266590356826782, -0.27034929394721985, -0.4496108591556549, 0.6924717426300049, -0.31318795680999756, 0.21761684119701385...
Our company has a fairly large ASP.NET web application. The app is already broken up into distinct 'areas' of business functionality. I'm looking for some strategies we can use to split this web application into separate buildable/versionable modules. **Primary goal being to:** Enable us to deploy the web app with on...
[ 0.6110060214996338, 0.26591458916664124, 0.22649572789669037, -0.09959370642900467, 0.3064204454421997, 0.07072795927524567, -0.05470433086156845, 0.03041810356080532, -0.2181215137243271, -0.4612169861793518, -0.30725353956222534, 0.4266648590564728, 0.09979580342769623, -0.01134055759757...
you have for implementing something like this? I would do sub-web projects. Each website is a sub-project of the parent website. You can write an HttpModule that checks some data store to see if that customer has access to that site (module) and deny access in that way. Scott Guthrie has a nice post about how to set up...
[ 0.6203437447547913, -0.17564715445041656, 0.13499309122562408, 0.1678576022386551, 0.018986118957400322, -0.4026721715927124, 0.24817748367786407, -0.2858479917049408, -0.5475959181785583, -0.1662052869796753, 0.31634798645973206, 0.29159918427467346, -0.06531194597482681, 0.12347945570945...
As a beginner/intermediate developer one problem I run into as my projects get bigger and more abstracted away as i use more OOP principles I have a problem with naming things. Like when i have multiple projects or class libraries I don't know what to name them. I see things from xxx.Core to xxx.Main or have even seen ...
[ 0.3177776336669922, -0.029178686439990997, -0.18148982524871826, 0.20436492562294006, -0.34012508392333984, 0.31262341141700745, -0.024065587669610977, 0.132376030087471, -0.11440078914165497, -1.0008890628814697, -0.03991103172302246, 0.19583012163639069, 0.12804795801639557, 0.1053532660...
naming libraries, methods, interfaces, etc... while coding so that more and more people will understand things when they come to pick up the project after me. Abbreviations are in general bad. **Data Access Layer** YourCompany.Data.dll **Entity Layer** YourCompany.Data.Entities.dll **Business Layer** YourCo...
[ 0.7200480103492737, 0.14541567862033844, 0.016958922147750854, 0.3154398798942566, -0.3889681398868561, -0.31719526648521423, 0.015180912800133228, 0.1377590149641037, -0.6511103510856628, -0.6524515748023987, 0.06528087705373764, 0.20394296944141388, -0.12887854874134064, 0.32476764917373...
To the best of my knowledge and googling skills, .Net 3.5 SP1 is still not an "official" release. That is the only way to get the SP1 upgrade is by voluntary download and not through mandatory windows updates. Is there any time frame set for when .Net 3.5 SP1 will be pushed to all windows users? Scott Hanselman wrote...
[ 0.30158117413520813, -0.23928578197956085, 0.7264326214790344, -0.013196539133787155, -0.1405980885028839, -0.2866981327533722, 0.49316054582595825, -0.046230338513851166, -0.24565774202346802, -0.4924362599849701, -0.205051451921463, 0.6653851866722107, -0.10202424973249435, -0.2308958172...
I am doing some work on a web site that has a secure area which is available to users only after they have logged in. In this area there is a page with links to pdf documents which can be downloaded. The physical documents are outside of the web site's root directory. The links to the pdf documents look something like ...
[ 0.6309384703636169, 0.3051004707813263, 0.524020791053772, -0.08053122460842133, 0.053411439061164856, -0.2962544560432434, 0.11725952476263046, -0.14951661229133606, -0.12457221746444702, -0.5892356038093567, -0.16979657113552094, 0.3160465657711029, 0.050721894949674606, 0.13766677677631...
application/pdf'); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); header('Content-Transfer-Encoding: binary'); header('Content-Length: ' . filesize($file)); header('Connection: Close'); set_time_limit(0); readfile($file); ``` This works well but in Firefox 3 and Internet Explorer 7 (I ...
[ -0.1997782438993454, 0.2153732031583786, 0.9684317111968994, -0.1174488365650177, -0.03160819783806801, -0.3178645372390747, 0.3215956687927246, -0.09098338335752487, -0.01622684858739376, -0.8978702425956726, -0.4552430808544159, 0.7880521416664124, -0.30125266313552856, 0.181921169161796...
doing this is using the header "Content-Disposition: inline;" but this means that I can't specify a filename (because is seems to be ignored by the browser). The problem with doing that is when I save the document, the default name is that of the URL, not the filename of the pdf document: ``` http___example.com_index....
[ 0.27277871966362, 0.375581830739975, 0.5181124806404114, -0.013787723146378994, -0.1722109168767929, -0.24677906930446625, 0.10567773133516312, -0.08891791850328445, -0.13603965938091278, -0.9145915508270264, -0.049027521163225174, 0.8334685564041138, -0.3699686825275421, 0.198965936899185...
for the Content-Disposition header field, it seems that browsers ignore the filename parameter when inline is used but rather try to work out what the filename should be based on the URL. If the URL has no query string then the part of the URL that follows the last / seems to be used as the filename. I have changed th...
[ 0.1820739507675171, -0.011222001165151596, 0.6992957592010498, 0.1613914519548416, -0.14532531797885895, -0.37155279517173767, -0.008517447859048843, -0.03693712502717972, -0.1628764569759369, -0.6957667469978333, -0.4293266534805298, 0.6311880946159363, -0.15068720281124115, 0.29801529645...
``` .htaccess: ``` RewriteEngine On RewriteRule ^file/secure-area/download/(.*)$ index.php?page=secure-area/download&file=$1 [L] ``` The script used to actually send the file is the same as I used before (note the example in the question uses Content-Disposition: attachment rather then Content-Disposition: inline t...
[ 0.05654795095324516, 0.2745625674724579, 1.1233904361724854, -0.042120691388845444, 0.005273882765322924, -0.1624438315629959, 0.13452793657779694, -0.32882845401763916, 0.04067866504192352, -0.8057612776756287, -0.605762243270874, 0.7359944581985474, -0.050913624465465546, 0.0294169839471...
to %27's when saved (Firefox doesn't), I would like to stop that from happening but for the meantime I'm happy with what I've got.
[ 0.1229662224650383, 0.24150478839874268, 0.47087809443473816, -0.05146319419145584, 0.08556924015283585, -0.06656485050916672, 0.14145532250404358, 0.11006338149309158, 0.11224398761987686, -0.5791568160057068, 0.1276702880859375, 0.5060486793518066, -0.003851967630907893, -0.0919460728764...
The question really asks it all. We have a bunch of really old S/36 programs that need to be moderized. I am more looking for articles or sites that explain what the old method does and how to convert it to RPGLE. [Here's a manual](http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0918180.pdf) for RPG II on the ...
[ 0.18803417682647705, 0.14786303043365479, 0.43884149193763733, 0.05939013883471489, -0.32008394598960876, -0.13667267560958862, 0.08608487993478775, -0.576927661895752, 0.08309680223464966, -0.6269528865814209, 0.13360190391540527, 0.9008929133415222, -0.022105272859334946, -0.042528919875...
command. It's might also be possible to take the RPG36 code directly into CVTRPGSRC to convert the source to RPG ILE.
[ 0.025695713236927986, -0.17669954895973206, 0.4765772819519043, 0.1844441294670105, -0.26765602827072144, -0.3512885868549347, 0.07090811431407928, -0.09681320190429688, 0.12766483426094055, -0.5843572616577148, -0.07189077138900757, 0.9202808141708374, -0.04967831075191498, 0.130338370800...
I just went through some MVC tutorials after checking this site out for a while. Is it just me, or does MVC View pages bring back HORRIBLE flashbacks of Classic ASP spaghetti code with all the jumping in and out of HTML and ASP.NET with yellow delimiters everywhere making it impossible to read? What ever happened to th...
[ 0.6481370329856873, 0.20948480069637299, 0.18804271519184113, -0.02566150762140751, -0.3482853174209595, -0.3619115948677063, 0.6308844685554504, 0.126450777053833, -0.5125484466552734, -0.2431628257036209, 0.13287484645843506, 0.49503466486930847, -0.36737945675849915, 0.2754647433757782,...
another location - sweeps it under the rug - it doesn't fix the problem) see Jeff's post (<http://www.codinghorror.com/blog/archives/001155.html>) which echoes your question, and Rob Conery's response (<http://blog.wekeroad.com/blog/asp-net-mvc-avoiding-tag-soup/>) In summary, ASP.NET MVC gives developers the choice o...
[ 0.4813106060028076, -0.25506722927093506, 0.0285481009632349, 0.2000436931848526, -0.1088208332657814, -0.14417390525341034, 0.2749842703342438, -0.42019906640052795, -0.2896274924278259, -0.43280747532844543, 0.18015791475772858, 0.13066478073596954, -0.15428254008293152, -0.3882934153079...
I had a need for a certain functionality on my web apps and I use jQuery a lot, so I thought I would write a jQuery plugin. Since this is my first attempt to write a jQuery plugin, I would really like to get feedback from people, or maybe even get collaboration so others could work with me to modify/enhance my code. I ...
[ 0.6462879776954651, 0.13394419848918915, 0.0007629687315784395, 0.08983646333217621, -0.215173602104187, -0.34329232573509216, 0.1418362706899643, 0.3168497383594513, -0.07216273248195648, -0.4747021496295929, 0.061783574521541595, 0.33589932322502136, 0.0835418850183487, 0.144569516181945...
sure if Stack Overflow is an appropriate place for that (if it is, I can update this post with the URL) - but is there a website I can post to invite people to give input and maybe help with my code? Can I use Stack Overflow, or is that considered spamming or advertising? I hesitated to even post this question becaus...
[ 0.5992418527603149, 0.2759097218513489, 0.12630510330200195, 0.35705775022506714, -0.004200083669275045, -0.3657948076725006, 0.3465120792388916, 0.24871297180652618, -0.19187408685684204, -0.27493175864219666, 0.342563658952713, 0.26977649331092834, -0.0105446120724082, -0.001707809162326...
advance! Brian try the [google groups](http://groups.google.com/group/jquery-en) and come into the #jquery irc channel on freenode the guys there will happily look over what you have done.
[ 0.2871192991733551, -0.05261243134737015, 0.5890258550643921, 0.08232417702674866, -0.12364834547042847, -0.15818630158901215, 0.12074898928403854, 0.0846201628446579, -0.3927675485610962, -0.6265777945518494, -0.1708626002073288, 0.42500028014183044, 0.3381803333759308, -0.137248754501342...
As the title says: Is there a difference between $str == '' and strlen($str) == 0 in PHP? Is there any real speed difference and is one better to use than the other? Yes, there is an important difference. The == operator does [type conversion](http://us2.php.net/language.operators.comparison), so it's not always going ...
[ 0.1231687068939209, 0.11139417439699173, 0.43558269739151, -0.007406755816191435, -0.29423123598098755, -0.14582066237926483, 0.4979008734226227, -0.19939306378364563, -0.10802137851715088, -0.37794241309165955, -0.1086374893784523, 0.6150096654891968, -0.19284184277057648, -0.039438087493...
that you're comparing strings.
[ 0.5473418235778809, 0.12708377838134766, -0.12074579298496246, 0.3480689227581024, -0.43759670853614807, -0.026995204389095306, -0.10485829412937164, -0.023708416149020195, -0.08611945062875748, -0.17939090728759766, 0.12097588926553726, 0.24846038222312927, -0.31253352761268616, 0.2291410...
We've recently implemented Amazon S3 in our site which led us to change the way we handled images. We used to call a controller /fotos.php that would read the file from disk, record some statistics, set headers and return the contents of the file as image/jpeg. All went OK until S3. Fotos.php now does a 302 redirect t...
[ 0.19114328920841217, -0.31548449397087097, 0.4933229684829712, 0.34173765778541565, -0.14762233197689056, -0.19708728790283203, -0.09304569661617279, 0.019807806238532066, -0.42815732955932617, -0.5399048924446106, -0.04015929251909256, 0.36691439151763916, -0.25826725363731384, 0.00090073...
URL exhibiting the problem (try to save the big image): <http://www.viajeros.com/fotos/el-gran-lago-de-atitlan-y-sus-volcanes/132968> Internet Explorer 6 at least tries to save it as Untitled.BMP. Here is the snippet of code we use in fotos.php: ``` $archivo = $fotos->ObtenerPathFotoAmazon( $url, null ); if (empt...
[ -0.280803382396698, -0.060561589896678925, 0.7546056509017944, 0.376057505607605, -0.15530136227607727, 0.014174348674714565, 0.17350730299949646, 0.3003856837749481, -0.3018568754196167, -0.4078148305416107, -0.30015450716018677, 0.5606527924537659, -0.1571958214044571, 0.1044179350137710...
to use content disposition attachment to let PHP specify the content-type (location leave the task to the web server) ``` $archivo = $fotos->ObtenerPathFotoAmazon( $url, null ); if (empty($_GET['nocache'])) { header('HTTP/1.0 302 Found'); header("Expires: ".gmdate("D, d M Y H:i:s", time()+315360000)." GMT"); ...
[ -0.30486518144607544, -0.2170560508966446, 0.8496497869491577, -0.10390914976596832, 0.10842587798833847, 0.07669541984796524, -0.05470609664916992, -0.15406188368797302, -0.1121940091252327, -0.7970702052116394, -0.37807658314704895, 0.5756401419639587, -0.04445303976535797, 0.20999254286...
I am trying to analyze a JVM crash that is occuring inconsistently. I get a hs\_err\_pid312.log file when it happens. i've added Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler(), but i'm not sure that will catch the error. What other things can i do so the next time this occurs, i can ...
[ 0.24124088883399963, 0.13159313797950745, 0.3337100148200989, 0.2652190625667572, -0.126292884349823, -0.49441835284233093, 0.5919947028160095, 0.07943262159824371, -0.20337450504302979, -0.8429396152496338, 0.04925790801644325, 0.5539149641990662, -0.03811762481927872, 0.07932832837104797...
details several sample crashes and hints at what might be behind it. If you see something about "grow array" in the hs\_err file header then your problem is likely an OutOfMemoryError. Normally the JVM should exit gracefully under such conditions, but non-daemon threads in your application can prevent this.
[ 0.28325027227401733, -0.02835659869015217, 0.09827414155006409, 0.25124919414520264, 0.03831172734498978, -0.2547524869441986, 0.37279897928237915, 0.10908231884241104, -0.16822156310081482, -0.4454994797706604, -0.10292507708072662, 0.25084593892097473, -0.13842831552028656, 0.09863073378...
Does anyone know of some mp3 playing code for the pocket PC. I have 3 mp3s that I want to play when my application loads up, depending on how you log in. I've used VS2005 C++ to code what I've got now. I think code to play mp3 for the desk might do the job. But I might not have access to the library, that's why ...
[ 0.23533226549625397, 0.16417758166790009, 0.06789033114910126, 0.2522841989994049, 0.23439283668994904, -0.14052721858024597, 0.13938947021961212, 0.08817464113235474, -0.44339287281036377, -0.6989015936851501, 0.11922026425600052, 0.7807303667068481, 0.008647317998111248, -0.3078378438949...
particular. That section describes how to make sense of what HotSpot is trying to tell you. Section 2.2.2 details several sample crashes and hints at what might be behind it. If you see something about "grow array" in the hs\_err file header then your problem is likely an OutOfMemoryError. Normally the JVM should exit...
[ 0.22267697751522064, -0.06044092774391174, 0.23622822761535645, 0.03820914030075073, 0.0923812985420227, -0.4634026885032654, 0.39500728249549866, -0.018919970840215683, -0.18663343787193298, -0.5188400149345398, -0.26044997572898865, 0.2181634157896042, -0.40426918864250183, 0.22635084390...
I am writing a web app using Castle ActiveRecord, and I keep getting this exception whenever I try to access a lazy loaded list of related objects. Here is my code: ``` using(new SessionScope()) { foreach (var field in eventObj.RegistrationFields) { //Do somethin...
[ 0.2920483648777008, 0.2115226835012436, 0.4872211217880249, -0.3307405710220337, 0.26087480783462524, -0.3073071241378784, 0.5007002353668213, -0.16286960244178772, -0.32365551590919495, -0.6151639819145203, -0.03142132610082626, 0.6667142510414124, -0.10651187598705292, 0.1677828431129455...
} } ``` The RegistrationFields property looks like this: ``` [HasMany(Inverse = true, Lazy = true)] public IList<EventRegistrationField> RegistrationFields { get; set; } ``` The exception happens when the "eventObj.RegistrationFields" is accessed for the foreach loop. I also made sure to set the is...
[ -0.29442688822746277, -0.06768876314163208, 0.11324591934680939, -0.20104855298995972, 0.039821986109018326, -0.3426600396633148, 0.4290494918823242, -0.07891309261322021, -0.28517812490463257, -0.6555857062339783, -0.20798838138580322, 0.6723970770835876, -0.3032236695289612, 0.1991486698...
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/> <add key="hibernate.connection.connection_string_name" value="main"/> </config> </activerecord> ``` I think you're getting confused about sessions. `RegistrationFields` is a lazy property of `eventObj`. It is the se...
[ 0.12958218157291412, 0.00788894109427929, 0.21002168953418732, -0.004873504396528006, -0.0598444826900959, -0.3945147395133972, 0.40395358204841614, -0.12401026487350464, -0.28610959649086, -0.5634697079658508, -0.229007288813591, 0.5490950345993042, -0.41798824071884155, 0.448879569768905...
`Dispose()` is called on the current scope. Objects will not automatically attach themselves to the current session. This is the expected NHibernate behaviour. It looks like you're trying to do session-per-unit-of-work, which is fine, but then the loading of objects *and* the resolution of all those objects' lazy coll...
[ 0.3348696827888489, -0.29071134328842163, 0.3777303397655487, 0.04380878806114197, -0.14519661664962769, -0.3813920021057129, 0.4217025339603424, -0.35555315017700195, -0.40559104084968567, -0.5993753671646118, -0.14240296185016632, 0.5844175219535828, -0.3806578516960144, 0.47798413038253...
Web app). You must be aware, though, that in this scenario any change you make to a persistent object will be written to the DB on session flush (in effect, you should treat a change to the state of a persistent object as a change to the underlying data as if they were the same operation - then you can't go wrong).
[ 0.13246767222881317, -0.2211044281721115, 0.4172445833683014, 0.16922210156917572, 0.048372525721788406, -0.33791211247444153, 0.5178245306015015, -0.017683178186416626, -0.29967954754829407, -0.8002783060073853, -0.4507216215133667, 0.5947506427764893, -0.2675362229347229, 0.0666308030486...
What's the best way retrieve complex queries from a REST service? Suppose I want to get X collections, apply filters and equations to each one, combine the collections using some other operation and return one result, everything in one request. It is just too complex (and big) to put everything in the querystring sin...
[ 0.09044866263866425, -0.10148923844099045, 0.19282317161560059, 0.24224001169204712, -0.02334863692522049, 0.16425517201423645, 0.19891192018985748, -0.26898762583732605, 0.0036994237452745438, -0.628503143787384, -0.07864729315042496, 0.35571420192718506, -0.3373323380947113, -0.152277305...
idea. The POST will take an XML representation of the query, with the "where" parameters already (they can be too many). The query will be executed only when the GET arrives. I could let the query object available just for some time and delete it later. Is this a good solution? Am I still RESTful doing this? Sounds RE...
[ 0.12721289694309235, -0.23115338385105133, 0.40985432267189026, 0.27092838287353516, 0.12904757261276245, 0.05722138285636902, -0.03760955110192299, -0.2007036954164505, -0.2681850492954254, -0.5942907929420471, 0.04093412682414055, 0.2191622108221054, -0.1514112651348114, 0.29226595163345...
(w/ query definition state stored on the server) is you could use the result of the query as a parameter of another query. Maybe even separate out POSTING the definition of a query from the execution of the query.
[ 0.2731804847717285, -0.3555071949958801, 0.11347758769989014, 0.43756741285324097, -0.18984682857990265, -0.11751297861337662, 0.08457351475954056, -0.1637835055589676, 0.0034392070956528187, -0.4743521511554718, 0.019250154495239258, 0.32822176814079285, 0.01386898010969162, 0.24007219076...
After watching: [The Clean Code Talks -- Inheritance, Polymorphism, & Testing](http://www.youtube.com/watch?v=4F72VULWFvc) I checked my code and noticed a few switch statements can be refactored into polymorphism, but I also noticed I only used switch statements with enums. Does this mean enums are "evil" in OO-design...
[ 0.37110012769699097, 0.005249984096735716, -0.13481710851192474, -0.06764088571071625, 0.21968750655651093, -0.3501824140548706, 0.36268699169158936, -0.34492170810699463, -0.1002441942691803, -0.3497278392314911, 0.03319936618208885, 0.2610897123813629, -0.310470849275589, 0.1468053460121...
you're using data to distinguish among subtypes. In place of that, you ought to just use subtypes, gaining the compiler's help in keeping it correct, and also meaning the compiler will automatically add new cases when you (inevitably) change the set of cases.
[ 0.29966989159584045, 0.1496499627828598, -0.2716805040836334, 0.31058090925216675, -0.09845994412899017, -0.045926690101623535, 0.17479906976222992, -0.10038269311189651, -0.09154660254716873, -0.7349233031272888, -0.2120884507894516, 0.3976116180419922, -0.3417496085166931, 0.015911264345...
I'm creating a WPF application where several ListView selections are made in a row (similar to the iTunes browser). The problem is that the default inactive selection color is too light. (see below) ![Default inactive selection color (too light)](https://i.stack.imgur.com/hwctc.jpg) How can I change this color so my i...
[ 0.05667950585484505, -0.3830574154853821, 0.6332476735115051, -0.1614401936531067, -0.16260309517383575, -0.15901270508766174, 0.21199999749660492, -0.31782373785972595, -0.2517773509025574, -0.6851534843444824, -0.05677295848727226, 0.3643575608730316, -0.503457248210907, 0.06611590832471...
color. Therefore, you can just override that color: ``` <ListBox> <ListBox.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}">Red</SolidColorBrush> </ListBox.Resources> </ListBox> ```
[ -0.2770017385482788, -0.2319381684064865, 0.6611095070838928, -0.03218447044491768, -0.020197315141558647, 0.22724878787994385, 0.29529663920402527, -0.43378525972366333, -0.13113026320934296, -0.6396139860153198, 0.18130439519882202, 0.46776536107063293, -0.318487286567688, 0.189200058579...
How to script a constraint on a field in a table, for an acceptable range of values is between 0 and 100? ``` ALTER TABLE Table ADD CONSTRAINT CK_Table_Column_Range CHECK ( Column >= 0 AND Column <= 100 --Inclusive ) ```
[ -0.08215177804231644, 0.374544620513916, 0.27304327487945557, -0.034339096397161484, -0.07362154871225357, 0.2414088249206543, 0.13572795689105988, -0.39155077934265137, -0.05793088674545288, -0.6222175359725952, 0.008769522421061993, 0.5208215117454529, -0.4358544945716858, -0.41808077692...
I am conducting some throughput testing. My application has to 1. read from JMS 2. do some processing 3. write to JMS My goal here is to simulate #2, 'some processing'. That is, introduce a delay and occupy the CPU for a given time (e.g. 500ms) before forwarding the event. The naive approach would be to `Thread.slee...
[ 0.3729935884475708, -0.3624435067176819, 0.15749678015708923, 0.05576242506504059, -0.15978753566741943, -0.08768203109502792, 0.10155463963747025, -0.1150190606713295, -0.3806629180908203, -0.47915852069854736, 0.032987020909786224, 0.34566178917884827, 0.05875712260603905, 0.010217326693...
a loop * Not something the HotSpot VM is going to optimise away to nothing * Has an easy way to adjust the processing period up or down (time to complete will clearly vary given the hardware) Encrypt a string (in a loop) by calling Cipher.update(). Encryption algorithms are by definition very difficult to optimize. The...
[ 0.43670886754989624, -0.22693993151187897, -0.2364652007818222, 0.19539792835712433, 0.00821546372026205, -0.5181635022163391, 0.6814165115356445, 0.07811085879802704, -0.17707285284996033, -0.30502209067344666, -0.23289339244365692, 0.00326848728582263, -0.5879533290863037, 0.170236781239...
So I finally dusted off my Objective-C/Cocoa books.. turns out they are nearly 7 years old! With Objective-C 2.0 now having garbage collection, how important are the chapters on Memory Management? How much of a difference has Garbage Collection made? Memory management is still really important to understand. If you're...
[ -0.03551241382956505, 0.5995447039604187, 0.060140106827020645, 0.11110076308250427, 0.2245745062828064, -0.10300978273153305, 0.22138091921806335, 0.22409601509571075, -0.535698652267456, -0.37057584524154663, 0.12086742371320724, 0.6281987428665161, -0.04161220043897629, -0.1762550920248...
collector in Objective-C is outstanding - and if you can be using it, you most definitely should be - but it just doesn't cover every programming situation yet.
[ 0.22055435180664062, -0.10391976684331894, 0.07708606868982315, 0.4517160654067993, -0.21289631724357605, -0.5092368721961975, -0.39388248324394226, -0.23383858799934387, -0.21395249664783478, -0.12997232377529144, 0.10881026089191437, 0.44527682662010193, -0.11685401946306229, -0.23201625...
In Crystal reports, you can define default values for the report parameters. For example, I might have a date range and set a default start of 12/01/2008 and a default end of 12/31/2008. Is it possible to modify these defaults at runtime? For example: 1 - Default to the first and last days of the current month? 2 -...
[ 0.06993486732244492, 0.02570679597556591, 0.6614865660667419, 0.11189025640487671, -0.3605256676673889, -0.14905497431755066, 0.1660947948694229, -0.14142660796642303, -0.31655898690223694, -0.23817957937717438, 0.4068644642829895, 0.46785157918930054, -0.16390207409858704, 0.3744073212146...
an external application to reach into the reports and modify them, if anyone knows how to do that. Edit: To answer the question posed by Philippe Grondier, most of these reports are run from inside an application. I was hoping for something simpler than manipulating the crystal object at runtime; I have my hands full...
[ 0.5659654140472412, 0.17198911309242249, -0.14543774724006653, 0.23960520327091217, -0.19888848066329956, -0.0490364246070385, 0.21143797039985657, 0.10085611790418625, -0.42186683416366577, -0.3981417119503021, -0.11255186796188354, 0.5593895316123962, -0.3552396297454834, -0.346781492233...
ActiveX Designer Runtime Support - craxdrt.dll - in VB code) ? In this last case, it is possible to manipulate every object of the report before launching it. Objects such as parameters can then be updated according to your needs. As a simple example of such runtime update, my report printing routine will allways che...
[ 0.38929101824760437, -0.3969927728176117, 0.5103312730789185, -0.034183625131845474, -0.027660375460982323, -0.13463275134563446, 0.051407523453235626, -0.18411670625209808, -0.17722970247268677, -0.7128748893737793, -0.24699951708316803, 0.8245977163314819, -0.6064499020576477, 0.09877067...
the report SQL string to add specific filters that can be inherited from your code. By doing so you might not even need parameters anymore: let your code add the filtering values 'on the fly' EDIT: some code examples: (m\_rapport is a CRAXDRT.report object, ActiveSession is my current session object) ``` If m_rappo...
[ 0.17826326191425323, 0.08093106001615524, 0.5072577595710754, -0.15381740033626556, -0.13586831092834473, -0.3668324649333954, 0.3067857325077057, -0.21114908158779144, -0.11860809475183487, -0.3832971155643463, -0.03419557586312294, 0.4805695414543152, -0.4716104567050934, 0.2851455509662...
If m_rapport.ParameterFields(i).Name = "{?PUB_DateFinPeriode}" Then m_rapport.ParameterFields(i).AddCurrentValue CDate(DateValue(sessionActive.dateFinPeriode)) End If If m_rapport.ParameterFields(i).Name = "{?PUB_id_Personne}" Then m_rapport.ParameterFields(i).AddCurrentValue Str...
[ -0.17721207439899445, -0.07445711642503738, 0.5962185859680176, -0.29253053665161133, -0.034410130232572556, -0.1174701452255249, 0.29371899366378784, -0.326730340719223, -0.26118215918540955, -0.5797978043556213, -0.3992471992969513, 0.644802987575531, -0.24548353254795074, 0.209858745336...
We have 5mb of typical text (just plain words). We have 1000 words/phrases to use as terms to search for in this text. What's the most efficient way to do this in .NET (ideally C#)? Our ideas include regex's (a single one, lots of them) plus even the String.Contains stuff. The input is a 2mb to 5mb text string - al...
[ 0.1607486605644226, -0.06180623918771744, 0.5016824007034302, 0.4756971597671509, 0.03909363970160484, -0.025469418615102768, 0.5085262656211853, -0.29656586050987244, 0.13936041295528412, -0.9075441360473633, -0.05333739519119263, 0.5947730541229248, 0.1554042100906372, -0.156412690877914...
naive string.contains. We don't want 'cat' to provide a match with 'category' or even 'cats' (i.e. entire term word must hit, no stemming). We expect a <5% hit ratio in the text. The results would ideally just be the terms that matched (dont need position or frequency just yet). We get a new 2-5mb string every 10 seco...
[ -0.01265175174921751, -0.0944691002368927, 0.25014248490333557, -0.023552697151899338, -0.3998141586780548, 0.3379785120487213, 0.4938305616378784, -0.3458619713783264, 0.014529393054544926, -0.8383176326751709, -0.25484055280685425, 0.5076953172683716, -0.15417881309986115, -0.14289706945...
Switching to 1000 GUIDs runs in about 5.5 secs. Regex.IsMatch found the 762 words (much of which were probably in earlier pages as well) in about .5 seconds, and ruled out the GUIDs in 2.5 seconds. I'd suggest your problem lies elsewhere...Or you just need some decent hardware.
[ 0.14494626224040985, 0.05783440172672272, 0.7822391390800476, 0.18576370179653168, 0.1245504766702652, 0.033284060657024384, 0.5848314166069031, -0.08461914211511612, 0.10281798988580704, -0.8201679587364197, 0.10021036118268967, 0.7445399761199951, 0.03888675570487976, -0.3905286788940429...
OK, I want to create a windows shell extention that sits in the file menu much like the "Tortorise SVN" menu. Does anyone know where I'd begin, a good article, or what interfaces to implement? Thanks! It's pretty straight forward actually. It's about a 3-4 step process. You didn't specify what language you were usin...
[ 0.16829347610473633, 0.16738103330135345, 0.35751184821128845, -0.241373673081398, -0.07787464559078217, -0.2075796127319336, 0.3395422697067261, 0.04458970949053764, -0.04392661526799202, -0.6962388753890991, -0.10464347898960114, 0.752027690410614, 0.3267781138420105, 0.2094273865222931,...
I am trying to create a column in a table that's a foreign key, but in MySQL that's more difficult than it should be. It would require me to go back and make certain changes to an already-in-use table. So I wonder, **how necessary is it for MySQL to be sure that a certain value is appropriate? Couldn't I just do that w...
[ 0.19645802676677704, 0.36366209387779236, 0.2357434183359146, 0.056439679116010666, -0.15180401504039764, -0.14365635812282562, 0.2199377417564392, 0.10064632445573807, -0.2306600958108902, -0.7481592893600464, 0.18877044320106506, 0.4176027476787567, -0.16774670779705048, 0.01804640516638...
use MySQL to do enforce these constraints, when I could just do it with PHP?** --- I realize that NOT NULL is a very stupid part to neglect for the above reasons. But MySQL doesn't enforce foreign keys without a serious degree of monkeying around. In your opinion, would it still be bad to use the "fake" foreign keys...
[ 0.47869282960891724, 0.30359968543052673, 0.043031174689531326, 0.2810318171977997, -0.06534126400947571, -0.4997299611568451, 0.4090553820133209, 0.14595775306224823, -0.20814193785190582, -0.49674445390701294, 0.1391422599554062, 0.8060106635093689, -0.09928177297115326, -0.3412961959838...
constraints on the data, and these constraints cannot be violated." You don't want to much around with "Step 1 ... Step 2 ... Step 3 ... Step 432 ...", as your method of enforcing constraints on data, because * you're going to get it wrong * when you change it later, you will forget what you did now * nobody else will...
[ 0.06296807527542114, 0.03775612637400627, 0.19903044402599335, 0.4458416998386383, 0.25171348452568054, -0.20410452783107758, 0.3892286717891693, -0.3639296293258667, -0.3670412003993988, -0.5270093679428101, -0.014002226293087006, 0.7266424298286438, -0.42400234937667847, -0.0173697173595...
you prepared to write it? The question should actually be worded, "Why should I use PHP to enforce these constraints, when I could just do it with MySQL?"
[ 0.4257037341594696, -0.08518477529287338, -0.17761442065238953, 0.30047109723091125, -0.09044995158910751, -0.21381394565105438, 0.06389263272285461, -0.3012332618236542, -0.18583261966705322, -0.23053772747516632, 0.4259358048439026, 0.41449683904647827, -0.2076358199119568, -0.6285511255...
I have an application that starts a Swing gui using java web start. The user has 4 versions of java 1.6 installed (1.6.0.3, 1.6.0.5, 1.6.0.7. 1.6.0.11) Webstart is selecting java version 1.6.0.11 but JAVA\_HOME is set to java version 1.6.0.3. Could this cause any potential problems for webstart? * rich In [this thr...
[ 0.18568658828735352, 0.35442233085632324, 0.6195467710494995, -0.25278234481811523, 0.10906494408845901, -0.16543035209178925, 0.22972534596920013, -0.38899949193000793, -0.12804830074310303, -1.0158662796020508, -0.07832545787096024, 0.317848801612854, -0.1479678899049759, 0.2195323556661...
be a problem. As [detailed here](http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html), > The **`deployment.properties`** file is used for storing and retrieving deployment configuration properties in the Java Control Panel. They are **also used for customizing runtime behavior for bo...
[ 0.19075806438922882, 0.0004799998423550278, 0.28829994797706604, -0.17600879073143005, 0.34477564692497253, -0.3193081319332123, 0.15832705795764923, -0.4410106837749481, -0.41967251896858215, -0.8383579850196838, -0.5344411134719849, 0.582249641418457, -0.13504241406917572, 0.010795151814...
I am working on a project currently where there are SQL strings in the code that are around 3000 lines. The project is a java project, but this question could probably apply for any language. Anyway, this is the first time I have ever seen something this bad. The code base is legacy, so we can suddenly migrate to Hib...
[ 0.6098323464393616, 0.20988242328166962, -0.2551009953022003, 0.04010525718331337, -0.1521250307559967, -0.23672188818454742, 0.4773481488227844, 0.46915459632873535, -0.12324541062116623, -0.5714736580848694, 0.41069021821022034, -0.13642528653144836, -0.36873161792755127, 0.3969315588474...
referencing the sprocs from code instead might be high yield and low effort.
[ 0.11371038109064102, 0.16323956847190857, 0.33995503187179565, 0.3502696454524994, -0.19238166511058807, 0.04233454540371895, 0.10937467962503433, -0.26015663146972656, 0.03670401871204376, -0.27628952264785767, -0.1354724019765854, 0.30082419514656067, -0.0081253033131361, -0.213482335209...
Is there any way in JavaScript how to find out user clicked through the same domain 2 or more times? I need to popup a window after user clicked anywhere on the site for 3 times. I know how to do it after one click - with `document.referrer` or `addEventListener`, but then I'm lost. I need something that will captur...
[ 0.13838888704776764, 0.15812067687511444, 0.40940240025520325, -0.051750969141721725, -0.04106447845697403, -0.3054446578025818, 0.44808709621429443, -0.02295457199215889, -0.23575469851493835, -0.7147340774536133, 0.05576381832361221, 0.36047688126564026, -0.4120936691761017, 0.2566791772...
0; } var allLinks = document.getElementsByTagName("a"); for(i=0;i<=allLinks.length;i++) { allLinks[i].addEventListener("click",countClicks,true); } function countClicks() { if(clicked == 2) { popunder(); //something to do } else { clicked+...
[ 0.1893114596605301, -0.1526777297258377, 0.9280964136123657, -0.42541295289993286, 0.1411404013633728, -0.07156925648450851, 0.5160650610923767, -0.38108083605766296, -0.14213980734348297, -0.31660324335098267, -0.33214929699897766, 0.45828914642333984, -0.5847314596176147, 0.4111450314521...
doCookie('popunder', clicked, 1); alert(clicked); } } function popunder() { alert('thats 3 clicks!'); } function doCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires =
[ 0.26868736743927, -0.19033758342266083, 0.8588983416557312, -0.3339172899723053, 0.46891728043556213, 0.07235638797283173, 0.29171276092529297, 0.07652079313993454, -0.32318010926246643, -0.531375527381897, -0.5770596861839294, 0.5186293721199036, -0.44103071093559265, 0.4789462983608246, ...
"; expires="+date.toGMTString(); } else { var expires = ""; } document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var readName = name + "="; var cSplit = document.cookie.split(';'); for(var i=0;i < cSplit.length;i++) {
[ 0.175134539604187, -0.30398449301719666, 0.6558213233947754, -0.0023983430583029985, 0.6303953528404236, -0.13665392994880676, 0.17215557396411896, -0.331146240234375, -0.41429367661476135, -0.40951094031333923, -0.6634461283683777, 0.4476749897003174, -0.1975458264350891, 0.34694603085517...
var sc = cSplit[i]; while (sc.charAt(0)==' ') sc = sc.substring(1,sc.length); if (sc.indexOf(readName) == 0) return sc.substring(readName.length,sc.length); } return null; } } ```
[ -0.3652673363685608, -0.2675285041332245, 0.5528561472892761, -0.22381678223609924, 0.010376818478107452, 0.15677940845489502, 0.3850165605545044, -0.31394028663635254, -0.2437477707862854, -0.363884299993515, -0.4099631607532501, -0.044701311737298965, -0.3360172212123871, 0.2340024858713...
I'm wondering if anyone knows how this happens? My website is down, but every computer on my internet connection/router can see it. I've cleared my cache etc, but another computer in the house shouldn't be seeing a site that's offline. How weird? It's hosted remotely, not on my network or anything. Do you know the IP ...
[ 0.6572889685630798, 0.4404200613498688, 0.4991611838340759, 0.01890856772661209, 0.3011048436164856, -0.22098256647586823, 0.35534313321113586, 0.250862717628479, -0.6827913522720337, -0.559097409248352, 0.1427561342716217, 0.3335804343223572, -0.02844475954771042, 0.4684954583644867, 0....
the server answers. Then type ``` GET / HTTP/1.0 ``` And hit enter twice. You should see the content of your default page. If your running as a virtual host, you'll probably need to use HTTP/1.1 and the Hostname tag. ``` GET / HTTP/1.1 Host: www.yourservername.com ``` There is one return after HTTP/1.1 and two re...
[ -0.08807092905044556, 0.09818491339683533, 0.6533159017562866, 0.20651793479919434, -0.018456337973475456, -0.01590914838016033, 0.2812625765800476, 0.14438943564891815, -0.34737351536750793, -0.8360738754272461, -0.4558693468570709, 0.5060401558876038, -0.3036549389362335, 0.2871688604354...
proxy server * local ARP poisoning attack redirecting you to attacker's local web server which mirrored your site. * DNS poisoning to direct your browsers to someone else's web server which mirrored your site. If your site is up, but geographically separated folks can't see your site, it is most likely a DNS issue or ...
[ 0.16826586425304413, 0.05533182993531227, -0.05391506850719452, 0.0992576852440834, -0.31586170196533203, -0.044461216777563095, 0.44489797949790955, 0.15987099707126617, -0.3714134395122528, -0.6344839930534363, 0.20435462892055511, -0.0015905775362625718, -0.4329909384250641, 0.281717181...
working on a routing issue.
[ 0.3174564838409424, 0.19459587335586548, -0.34690746665000916, 0.15704122185707092, -0.03953173756599426, -0.15083107352256775, -0.1415470838546753, -0.10991081595420837, -0.11565756797790527, -0.46451956033706665, 0.01880010962486267, 0.08190515637397766, -0.03495150804519653, -0.26168614...
I never actually thought I'd run into speed-issues with python, but I have. I'm trying to compare really big lists of dictionaries to each other based on the dictionary values. I compare two lists, with the first like so ``` biglist1=[{'transaction':'somevalue', 'id':'somevalue', 'date':'somevalue' ...}, {'transactio'...
[ -0.04958098381757736, 0.03114451840519905, 0.4324977397918701, 0.14415359497070312, 0.010777642950415611, -0.01123241800814867, -0.3009486496448517, 0.09773209691047668, -0.34968870878219604, -0.6639531254768372, -0.1843186616897583, 0.2904806435108185, -0.07732778787612915, -0.10135207325...
biglist1 for all other keys *except* id. I've been doing ``` for item in biglist2: for transaction in biglist1: if item['transaction'] == transaction['transaction']: list_transactionnamematches.append(transaction) for item in biglist2: for transaction in list_transactionnamematches: ...
[ -0.3636840581893921, -0.2902946174144745, 0.568575382232666, -0.16140303015708923, 0.049446575343608856, -0.14723064005374908, -0.18239137530326843, -0.49736300110816956, -0.771428108215332, -0.6193864941596985, -0.04198422655463219, 0.5794085264205933, -0.3293004333972931, -0.128253415226...
time for python to loop through. I'm guessing this isn't really how this kind of comparison should be done. Any ideas? Index on the fields you want to use for lookup. O(n+m) ``` matches = [] biglist1_indexed = {} for item in biglist1: biglist1_indexed[(item["transaction"], item["date"])] = item for item in bigl...
[ -0.1377563178539276, -0.09527219086885452, 0.38208580017089844, -0.17045831680297852, 0.04502188414335251, -0.13307222723960876, 0.11099225282669067, -0.20345066487789154, -0.48714059591293335, -0.6149103045463562, -0.04697442054748535, 0.6713649034500122, -0.6117660403251648, -0.138791993...
Is there a version of JDE for emacs that supports the JDK 6.10? I haven't been able to find any information on this. While it runs, every time I attempt to compile files the JDE says that it doesn't recognize my JDK version and reverts to assuming it is a Java5 version. I've made following customizations for JDE: ``` ...
[ -0.0894743874669075, 0.4942314028739929, 0.25398269295692444, -0.23158499598503113, -0.12824882566928864, -0.1504032164812088, 0.18918487429618835, 0.10077738761901855, -0.24983535706996918, -0.6153110265731812, -0.2354050874710083, 0.6437607407569885, -0.5621074438095093, 0.04111624136567...
Given a variable `foo` of type `FooClass*` and a member variable in that class named `bar`, is the distance between `foo` and `&(foo->bar)` the same in any situation with some constraints: 1. `FooClass` is a non-POD type. 2. We know that `foo` will always point to an instance of `FooClass`, and not some subtype of it....
[ 0.17668704688549042, 0.09859200567007065, 0.27283936738967896, -0.30961015820503235, -0.06279712915420532, -0.02222617156803608, 0.20549394190311432, -0.32698413729667664, -0.08705900609493256, -0.40895870327949524, -0.34100812673568726, 0.2787725329399109, -0.49143555760383606, 0.02423512...
binary and used in the binary, and that is it. 4. We don't use a custom `new`, although some instances of the class may be stack-allocated and some heap-allocated. 5. There is no explicit `ctor` for `FooClass`; it relies upon the compiler-generated one (and each of the fields in `FooClass` is either POD or default-cons...
[ 0.15868337452411652, 0.04470736160874367, 0.04457249864935875, -0.09101754426956177, 0.12597326934337616, -0.20639033615589142, 0.04197578504681587, 0.07382381707429886, -0.2573922872543335, -0.5917729735374451, -0.16786663234233856, 0.44122326374053955, -0.3464910686016083, 0.254821330308...
assume this type can't be POD. **An update/clarification:** this is just for a single compilation of a single binary; the calculated offsets will never leave that single execution. Basically, I want to be able to uniquely identify the fields of a class in a static map and then be able to lookup into that map for some ...
[ 0.5355168581008911, 0.05671015754342079, 0.08190096169710159, -0.17918305099010468, 0.17567352950572968, -0.11151959747076035, 0.13893559575080872, 0.12944993376731873, -0.20735055208206177, -0.6108185648918152, -0.1754542589187622, 0.6212626695632935, -0.3466342091560364, 0.02113022841513...
Not a class derived from FooClass, or anything else for that matter. The reason that C++ makes the POD distinction regarding member offsets is because both multiple inheritance and the location (or lack of) a vtable pointer can create situations where the address of an object is not the same as the address of that obj...
[ 0.1057746410369873, -0.1745939403772354, -0.07717201113700867, 0.045704953372478485, 0.017441995441913605, -0.03904058411717415, -0.0822523981332779, 0.05419168248772621, -0.3102681636810303, -0.25025105476379395, -0.18952220678329468, 0.2675962448120117, -0.5564115047454834, 0.14273147284...
Does anyone know how to install IronPython 2.0 with NGEN'ed binaries using the MSI package? The [official IronPython homepage](http://www.codeplex.com/IronPython) says that the NGEN option will greatly improve startup time, but for some reason it is not enabled by default. It doesn't actually state which MSI parameters...
[ 0.2947290539741516, 0.2077922224998474, 0.02077571116387844, -0.07821886241436005, 0.013770952820777893, -0.12605047225952148, 0.5094049572944641, 0.17337006330490112, -0.13920333981513977, -0.823935329914093, -0.09268710017204285, 0.5937086939811707, -0.3269311189651489, -0.07373434305191...
is in the order of 5-6 seconds on my laptop with 2+ghz Intel Core 2 Duo w/ 4gig. And this happens every time I run. I hope that this NGEN option solves this problem because as slow as it is now, it almost feels like I'm using a compiled language. **UPDATE**: srivatsn had the right answer to use the NGENDLLS=True comma...
[ 0.30212345719337463, 0.1724940985441208, 0.6188803315162659, -0.20887386798858643, 0.03146122768521309, -0.026277875527739525, 0.6905149817466736, -0.015785103663802147, -0.1400521695613861, -0.7448830604553223, -0.15634272992610931, 0.8960652947425842, 0.11711473017930984, -0.036735914647...
anyone know what command line parameter (non UI) enables the NGEN option? Try passing in NGENDLLS=True from the commandline.
[ 0.29042065143585205, -0.11929739266633987, 0.12976256012916565, -0.053934089839458466, 0.11454122513532639, -0.20003119111061096, 0.6072914600372314, 0.3063906133174896, -0.2605937123298645, -0.47548937797546387, -0.01607794128358364, 0.9345009922981262, -0.025209834799170494, -0.160982966...
We have an SPItemEventReceiver compiled into its own assembly. We are using STSDev to package up a SharePoint solution with this EventReceiver as a feature. I am not assigning the SPItemEventReceiver to a specific ListTemplateId within the elements.xml, but am instead linking a ReceiverAssembly in the feature.xml and...
[ 0.35077381134033203, 0.054535869508981705, 0.280580073595047, -0.14144642651081085, -0.1458212286233902, 0.21081557869911194, 0.3815784454345703, -0.33230775594711304, 0.04158277064561844, -0.38975200057029724, 0.14577552676200867, 0.3450181484222412, -0.12079249322414398, -0.1089962720870...
webListCollection = web.Lists; foreach (SPList myList in webListCollection) { if (myList.Title == "Lab Reports") { SPEventReceiverDefinitionCollection receivers = myList.EventReceivers;
[ 0.1959560066461563, -0.310979962348938, 0.7599396705627441, -0.06545165926218033, 0.1435345560312271, -0.19358283281326294, -0.01572941429913044, -0.4041159152984619, -0.3727315664291382, -0.3557724356651306, -0.1790761947631836, 0.2903834879398346, -0.15260028839111328, 0.1581328362226486...
SPEventReceiverDefinition receiver = receivers.Add(); receiver.Name = "PostUpdateLabReport"; receiver.Assembly = "LabReportEventHandlers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1111111111111"; receiver.Class = "LabReportEventHandlers.LabReportsHandle...
[ 0.2946334481239319, -0.42489150166511536, 0.4489368796348572, -0.07405393570661545, -0.08532150089740753, 0.21900764107704163, 0.1577957272529602, -0.41388455033302307, -0.1524362862110138, -0.5118447542190552, -0.414373517036438, -0.008783171884715557, -0.28284555673599243, 0.166265413165...
receiver.Type = SPEventReceiverType.ItemUpdated; receiver.Update(); break; } } web.Dispose(); } } ``` I am using FeatureDeactivating to
[ 0.45142388343811035, -0.5254598259925842, 0.4901740252971649, -0.40608248114585876, -0.13912750780582428, -0.2128974199295044, 0.5131375193595886, -0.2863502502441406, -0.20011337101459503, -0.5219033360481262, -0.08171164244413376, 0.33508703112602234, -0.6026497483253479, 0.1707952320575...
do the reverse of the above code, removing the EventReceiver from the lists. **Question:** How should I handle the future event where LabReportEventHandlers is updated and the version changes? These are the options I can think of: 1. Deactivate / Reactivate feature -- I would wrap the updated dll back into the Sh...
[ 0.11479159444570541, -0.17436383664608002, 0.5461378693580627, -0.08334094285964966, -0.009285555221140385, -0.10331743955612183, 0.43155544996261597, -0.1834220588207245, -0.34439462423324585, -0.8158760070800781, -0.11218231171369553, 0.8371549844741821, -0.16898290812969208, -0.02664810...
there are problems with the 3 options: 1. After deactivation of the feature, someone could update an item before I can reactiave. 2. I would not want to edit the web.config by hand, so I would use the sharepoint API instead. Where would I run that code? 3. This is just plain wrong, but easy. Maybe you can encapsulate...
[ 0.15460766851902008, -0.26211676001548767, 0.279248982667923, 0.17321263253688812, -0.11251650005578995, -0.18582966923713684, 0.5149410367012024, -0.4980054795742035, -0.1303565502166748, -0.5708736777305603, 0.09556547552347183, 0.7073990702629089, -0.329820454120636, 0.16659055650234222...
directory(ies) appropriately. HTH, jt
[ 0.05719052255153656, 0.1752721667289734, 0.5882220268249512, 0.059401798993349075, 0.22912515699863434, 0.11758886277675629, 0.19743074476718903, -0.14825426042079926, -0.06406567245721817, -0.64134281873703, -0.166411355137825, 0.18815135955810547, -0.20672862231731415, 0.0467090234160423...
Working with a latex document with eps images as in the example below... ``` \documentclass[11pt]{paper} \usepackage[dvips]{graphicx} \usepackage{fullpage} \usepackage{hyperref} \usepackage{amsmath} \DeclareMathSizes{8}{8}{8}{8} \author{Matt Miller} \title{my paper} \begin{document} \begin{figure}[!ht] \begin{...
[ 0.05532846599817276, -0.07843232899904251, 0.37258386611938477, -0.05122184008359909, 0.346804141998291, -0.1344110369682312, 0.2152341604232788, -0.3711010217666626, -0.32026249170303345, -0.8153300285339355, -0.1517850011587143, 0.6286161541938782, -0.2153254896402359, -0.637220144271850...
just needs to embed the eps into the postscript file. dvipdf, on the other hand has to convert the eps into pdf, which is expensive.
[ 0.0012242957018315792, -0.16302263736724854, 0.747548520565033, 0.334723562002182, 0.04791015014052391, -0.6430780291557312, -0.36485055088996887, -0.1738823652267456, -0.16486309468746185, -0.8668099045753479, -0.12113360315561295, 0.28864264488220215, -0.14648476243019104, -0.18415227532...
Quick design question. ClassA has a method called DoSomething(args) In DoSomething(), before it can actually do something, it needs to do some preparatory work with args. I believe this should be encapsulated within ClassA, (as opposed to doing the prep work outside and passing it in) as nothing else needs to know th...
[ 0.216997891664505, -0.0966266617178917, -0.01468399353325367, 0.0033010949846357107, 0.04627145454287529, -0.09421858936548233, 0.03157517686486244, -0.3010252118110657, -0.16877132654190063, -0.7189309597015381, 0.04175346717238426, 0.3512991666793823, -0.16111822426319122, -0.10798172652...
ListOfStuff, which takes args in its constructor and put this preparatory work here. From a TDD-perspective, I think this is the right choice. We can then unit test ListOfStuff til our heart is content. If we had put the preparatory work in a private method of ClassA, we'd have only been able to indirectly test it thr...
[ 0.3762231469154358, -0.018987499177455902, 0.04251416027545929, 0.04625682532787323, -0.30510789155960083, -0.09850721806287766, 0.44403836131095886, -0.459683895111084, -0.016399644315242767, -0.5971868634223938, 0.2618611752986908, 0.5971453785896301, -0.21301038563251495, -0.06962341815...
this prep work get done every time you need to doSomething(), or is it done and saved? If so, that argues for the class. 2. Does this computation need to happen in more than once place? If so, that argues for a class. 3. Can the details of the implementation of the doSomething() method, or the preparation work for it, ...
[ 0.2445777952671051, -0.10578121989965439, 0.1326538771390915, 0.1816704422235489, -0.03671577572822571, -0.01577696017920971, 0.17893517017364502, -0.5149778723716736, -0.2451145052909851, -0.6847357153892517, 0.054291535168886185, 0.6092262864112854, -0.15587486326694489, -0.0674930810928...
So in Ruby there is a trick to specify infinity: ``` 1.0/0 => Infinity ``` I believe in Python you can do something like this ``` float('inf') ``` These are just examples though, I'm sure most languages have infinity in some capacity. When would you actually use this construct in the real world? Why would using i...
[ 0.5109351277351379, 0.11975919455289841, -0.1681692898273468, 0.11568192392587662, 0.1906120926141739, -0.43109601736068726, 0.40064388513565063, 0.021564189344644547, -0.16967065632343292, -0.25705966353416443, 0.13444599509239197, 0.6966578960418701, -0.35104063153266907, -0.184372469782...
is when you "could" use it, when have people *actually* used it. Dijkstra's Algorithm typically assigns infinity as the initial edge weights in a graph. This doesn't *have* to be "infinity", just some arbitrarily constant but in java I typically use Double.Infinity. I assume ruby could be used similarly.
[ -0.12274009734392166, -0.5285882949829102, -0.02630288526415825, -0.12714828550815582, -0.005790537688881159, -0.20807959139347076, 0.24923446774482727, -0.22180625796318054, -0.20334723591804504, -0.6753854751586914, -0.04040113463997841, 0.3459737002849579, -0.1325264573097229, -0.267564...
I have a file system based Jackrabbit repository which I would like to view and edit directly. Is there an existing tool that allows me to view/edit/delete/add nodes directly? Jackrabbit itself currently has no built-in general-purpose JCR explorer, but there are some open source options available. [This article](http:...
[ 0.08732366561889648, 0.2761717140674591, 0.2968153953552246, -0.20680028200149536, -0.21858984231948853, -0.05603404715657234, 0.219707652926445, 0.11585676670074463, -0.33646339178085327, -0.44344180822372437, -0.26442378759384155, 0.4159649908542633, -0.2099037766456604, -0.2033928483724...
Ok I'm at my work this friday setting up a table that will have data in it that will come from a separate file called values.php. When I write it like this, the divs turn up blank. I think I have the "include" written wrong, does an absolute path not work? ``` <?php include('http://www.nextadvisor.com/credit_report_se...
[ 0.540198028087616, 0.10998523980379105, 0.5408011078834534, -0.25070878863334656, 0.43772345781326294, -0.17559251189231873, 0.15971039235591888, -0.27156227827072144, -0.5387818813323975, -0.4961039125919342, 0.23822753131389618, 0.46097955107688904, 0.08034873008728027, -0.05128951370716...