text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? CSS is fine for rollovers. They're implemented basically using the `:hover` pseudo-selector. Here's a rea...
[ 0.30589622259140015, -0.06294761598110199, 0.7496241331100464, -0.12965305149555206, -0.16947685182094574, -0.11579381674528122, -0.005909078288823366, 0.010113002732396126, -0.2919796407222748, -0.6237710118293762, -0.3068455159664154, 0.32432782649993896, -0.1474183350801468, -0.27921372...
take a second to appear first time) The `<a>`-tags-only restriction is usually no problem, as you tend to want rollovers clickable. The latter however is a bit more of an issue. There is a technique called [CSS Sprites](http://alistapart.com/articles/sprites/) that can prevent this problem, you can find an example of ...
[ 0.30000630021095276, -0.2754999101161957, 0.3539353311061859, 0.06940983235836029, -0.19201694428920746, -0.14367704093456268, -0.02248043566942215, -0.041120171546936035, -0.3570265471935272, -0.6108770966529846, -0.2840975224971771, 0.17899192869663239, -0.3136138916015625, 0.08336331695...
you just need to reposition the background - no extra files need to be loaded at all. Here's a quick-and-dirty example (this example assumes you have an element 20px high, and a background image containing both the hovered and non-hovered states - one on top of the other (so the image is 40px high)): ``` a{ backgr...
[ 0.15659776329994202, -0.19208396971225739, 0.8563752770423889, 0.05992354825139046, -0.09646017104387283, 0.11318619549274445, -0.1253892481327057, -0.1030125766992569, -0.21029415726661682, -0.5453054904937744, -0.19593293964862823, 0.33922791481018066, 0.1115216314792633, -0.155508652329...
that you will be unable to use alpha-transparent PNGs with IE6 (as the only way IE6 has to render alpha-transparent PNGs properly uses a special image filter which don't support `background-position`)
[ 0.09816555678844452, -0.030312376096844673, 0.056005824357271194, 0.08111593872308731, 0.07821790874004364, -0.025146909058094025, 0.34483760595321655, 0.23257341980934143, -0.2631255090236664, -0.3931814134120941, -0.29195138812065125, 0.48441529273986816, -0.4026452898979187, -0.05023076...
I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tutorials I've seen lack. For instance: Nav...
[ 0.3446354866027832, -0.028988242149353027, 0.0376397930085659, 0.18980146944522858, -0.13529179990291595, -0.11862877756357193, 0.49061906337738037, 0.5614722967147827, -0.40117940306663513, -0.6476021409034729, 0.33327963948249817, 0.5865995287895203, -0.10376904159784317, -0.101992443203...
seeing example code. Are there any good open sourced sites in RoR? Any example code that I can check out? I guess my question really results to using MVC. The basic idea is really basic, and I understand that. But it seems that most applications have each part completely separate from each other... what if I want to, ...
[ 0.3842634856700897, 0.06220054253935814, 0.13137009739875793, 0.24539268016815186, -0.18102768063545227, -0.0859091728925705, -0.004910129588097334, 0.04832950234413147, -0.562859296798706, -0.5896570682525635, 0.2731868326663971, 0.6055620908737183, -0.5401360988616943, 0.0724066644906997...
PageModel, and none other. All examples I've seen seem to operate this way...is that a faulty assumption? Or am I totally missing the point, and is that 'doing it wrong?' [Open Source Rails](http://www.opensourcerails.com/) is a repository of sites implemented in rails.
[ 0.4021088182926178, -0.016777096316218376, -0.04656827449798584, 0.09785796701908112, -0.2937113344669342, -0.24639609456062317, 0.10574661195278168, 0.4950186312198639, -0.2565661370754242, -0.6364543437957764, -0.061450399458408356, 0.03424006327986717, -0.20375268161296844, 0.1034358888...
In few months I start a project in PHP and I am hesitating to do like usual : develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution. **Do you think it's a good idea or not?** I would run a [VirtualBox](http://www.virtualbo...
[ 0.43078991770744324, 0.14311110973358154, 0.10334236919879913, 0.08552277833223343, -0.21890409290790558, -0.16133230924606323, 0.1107713133096695, 0.3846832513809204, -0.3213639557361603, -0.7661367058753967, 0.1892971694469452, 0.3781712055206299, -0.08619599044322968, 0.0947802066802978...
OS, or Linux/dev. **Update** I have build many website in PHP with Windows, the question is more about if it's a good way to start learning Linux by developing on it via a Virtual machine? I have 4 gigs rams, will it be smooth if I install Eclipse in the Virtual Machine? etc. You should really develop on the same plat...
[ 0.38766172528266907, 0.14919374883174896, 0.20911015570163727, 0.1040206179022789, -0.09343309700489044, 0.15416696667671204, 0.1445527970790863, 0.4738513231277466, -0.22231575846672058, -0.8420255184173584, 0.07390430569648743, 0.882042407989502, 0.05833454057574272, -0.21467718482017517...
you want to have a production system running ASAP without much headache? Or, you want to spend some time and make some effort to learn how to develop cross-platform stuff? And yes, there are differences. For example, case sensitive and case in-sensitive filenames. Then, some PHP functions use native C functions that h...
[ 0.25353124737739563, -0.025425942614674568, -0.016811883077025414, 0.37617698311805725, -0.27847006916999817, -0.12280230224132538, 0.0019502302166074514, -0.1765356957912445, -0.2501637637615204, -0.5861813426017761, 0.12724754214286804, 0.5304179787635803, -0.056211523711681366, -0.04768...
can remember off the top of my head.
[ 0.4851923882961273, 0.4519897997379303, 0.17242860794067383, -0.08605919033288956, 0.3995581865310669, 0.038698628544807434, -0.03788338974118233, 0.24246841669082642, -0.17672613263130188, -0.5156592726707458, 0.17616291344165802, 0.12089953571557999, 0.5079905390739441, 0.262215375900268...
We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used leading to name space conflicts. Does anyone know of a tool t...
[ 0.4618043005466461, 0.3399731516838074, -0.3495846688747406, 0.09285277128219604, -0.19466319680213928, -0.20024718344211578, 0.1514410674571991, -0.020471272990107536, -0.30771970748901367, -0.5234229564666748, 0.2592220902442932, 0.4188583493232727, -0.3674625754356384, 0.247923538088798...
place. If they aren't unique, you need to rethink how you're assigning your package names. If they're "flat" (`foo.this` and `foo.that`) you need to make them taller and much more specific. That's why the examples are always `org.apache.project.component.lower.level.names`. You should have `com.projectX.foo.this` and...
[ 0.6096460819244385, 0.28524795174598694, -0.3109423518180847, 0.09844257682561874, 0.27266502380371094, -0.024511637166142464, 0.07467029243707657, -0.07882983982563019, -0.3406398594379425, -0.7619417309761047, -0.2465585172176361, 0.3596630096435547, -0.00571620836853981, 0.2135741412639...
How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema? Also, what options f...
[ 0.5325180292129517, -0.02510204166173935, 0.01158940326422453, -0.07271818071603775, 0.0012691362062469125, 0.12118589133024216, -0.044671349227428436, -0.28066912293434143, -0.19773156940937042, -0.649300217628479, 0.1200009360909462, 0.4465770423412323, -0.4595509171485901, -0.1958563476...
it makes a difference. (No Ruby solutions please). See [Is there a version control system for database structure changes?](https://stackoverflow.com/questions/308/is-there-a-version-control-system-for-database-structure-changes) [How do I version my MS SQL database in SVN?](https://stackoverflow.com/questions/173/how...
[ 0.3130719065666199, 0.43932804465293884, 0.5604344010353088, -0.22648337483406067, -0.18597127497196198, 0.00768016092479229, 0.12609292566776276, -0.042869243770837784, -0.42242109775543213, -0.5758525133132935, 0.23741036653518677, 0.5474625825881958, -0.12446542084217072, 0.169749751687...
What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even created a new fla and pasted everyth...
[ 0.24362513422966003, -0.04147092625498772, 0.5310052633285522, 0.11848724633455276, -0.06031415984034538, 0.2557617425918579, 0.28417474031448364, 0.1223357617855072, -0.3075045943260193, -0.6612493991851807, -0.05255557596683502, 0.7141013145446777, 0.044517844915390015, -0.16294287145137...
do with having many symbols within symbols? EDIT: Filesize of fla is 1.3 MB and swf is 500 KB. So not too big. This is not average for Flash. Normally, the only cause for long export times is that you're exporting a lot of stuff, some of which you may not mean to be exporting. Does your animation have audio? If you i...
[ 0.031000545248389244, -0.05578388646245003, 0.16778422892093658, 0.19871866703033447, -0.06997927278280258, -0.06657109409570694, 0.11687739938497543, -0.21113897860050201, -0.4333289563655853, -0.4131769835948944, -0.05718120187520981, 0.46942955255508423, -0.1458323448896408, -0.22561979...
the audio uncompressed, so it will increase the file size but publish instantly. (Of course when you are ready to export the finished product, you'll want to return the settings to a compressed format for the final export.) Alternately, you can put the audio in a separate file (SWF, MP3, etc) and load it at runtime. A...
[ 0.07310555130243301, 0.09248796850442886, 0.31347793340682983, 0.4594782888889313, -0.09160786867141724, -0.46757152676582336, 0.19711709022521973, -0.17554710805416107, -0.12661777436733246, -0.4680560827255249, -0.2812238037586212, 0.9125998616218567, -0.3131876587867737, 0.3236917555332...
in publish settings, turn on "generate size report". Then export, and check the size report for any large pieces of content that you didn't mean to be exporting. It's hard to say more without knowing what kind of content you're exporting, but if you have one piece of content that takes much longer to export than simil...
[ 0.319369375705719, 0.0009994179708883166, 0.22688502073287964, 0.29773038625717163, -0.17706698179244995, -0.6138002276420593, -0.015649370849132538, 0.10526531934738159, -0.5223761200904846, -0.504021942615509, -0.11192558705806732, 0.3380521535873413, -0.1695723682641983, 0.1591010689735...
I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data *330-000-0000*. I have seen some options of third parties that validate phone numbers for you, however idk if that is the best option for this sit...
[ 0.6243588924407959, 0.2981180250644684, -0.001284065074287355, 0.38191425800323486, 0.054265737533569336, -0.3418585956096649, 0.3654230833053589, 0.05353204160928726, -0.2574848234653473, -0.5467174649238586, 0.3581077456474304, 0.35278213024139404, 0.12454788386821747, 0.0789574459195137...
junk phone numbers received. * not a 555 number * does not contain 7 identical digits * valid area code (this is readily available) * not a 123-1234 or 123-4567 * I guess I could also count out 867-5309 (heh[\*](http://en.wikipedia.org/wiki/8675309)) Would this result in any situations that you can think of that woul...
[ 0.5482231974601746, 0.3532930314540863, -0.07374176383018494, -0.02350260689854622, 0.2277119755744934, -0.13063602149486542, 0.4271402955055237, -0.1681663542985916, -0.6308892965316772, -0.1444891095161438, 0.2007029950618744, 0.3664839267730713, -0.24623021483421326, 0.07089545577764511...
catch well over 90% of them with just a very simple check. If your purpose is to try to force users to provide a valid number whether they want to give that information out or not, then you've taken on a hopeless task - even if you were able to access 100% accurate, up-to-the-second telco databases to verify that the ...
[ 0.5673333406448364, -0.26281315088272095, 0.14505673944950104, 0.372636079788208, 0.3320687711238861, -0.0571068711578846, 0.44075149297714233, 0.0974714383482933, -0.640693724155426, -0.007418954279273748, 0.11460692435503006, 0.14803969860076904, -0.44243618845939636, 0.10275527089834213...
try more than two or three times *will* find a way to defeat your attempts to gain their numbers. Either way, a simple test is going to get you good results and going into more complex rule sets will take up increasingly more time while providing increasingly little benefit to you (while also potentially adding false ...
[ 0.583625316619873, 0.09986428171396255, -0.09140709042549133, 0.06299550831317902, 0.0897614061832428, -0.0729629322886467, 0.6667349934577942, -0.30301281809806824, -0.32097673416137695, -0.554119348526001, 0.10856644064188004, 0.3072145879268646, -0.12460590153932571, -0.1594077795743942...
I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents. The site will support several file formarts, from plain text to office documents (doc, xls, ppt, ...), videos (mpeg, avi, ...), images (jpg, gif, png, ...) PDF's, Open Office, etc. Each document need to have a "preview"...
[ 0.5642582178115845, 0.09062071144580841, 0.420116662979126, 0.4017578959465027, -0.39039477705955505, -0.1374441683292389, -0.24594654142856598, 0.284354567527771, -0.07045618444681168, -0.9975809454917908, 0.0012814569054171443, 0.49768686294555664, 0.08540379256010056, 0.2466161847114563...
just need to include a thumbnail in the preview. Also I will use FFMPEG for converting videos to FLV so I can use it for taking screenshots of the videos too. I was thinking in using [JODconverter](http://www.artofsolving.com/opensource/jodconverter) which supports Office and Open Office formats, I don't know if it c...
[ 0.4311109483242035, 0.009961568750441074, 0.5379640460014343, 0.0949305072426796, -0.43464070558547974, -0.2894322872161865, 0.08034233003854752, 0.2887197434902191, -0.28135958313941956, -0.8015080094337463, 0.04135970026254654, 0.7007705569267273, -0.1622779816389084, 0.00523912115022540...
knows a better application or method for converting files to images? Any help will be greatly appreciated, thanks in advance! Javier I ended using JODConverter for converting everything to PDF and then SWFTools for converting from PDF to SWF. I created my own document viewer using Flash. It's working really well so ...
[ 0.11799640208482742, 0.07029503583908081, 0.5448161959648132, 0.11567547917366028, -0.04732563719153404, -0.272015780210495, -0.09361962229013443, 0.3345877230167389, -0.1584198772907257, -0.7674160003662109, 0.24427445232868195, 0.7857975363731384, 0.22541137039661407, -0.0390803404152393...
I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary. Is there a Maven plugin to accomplish this?...
[ 0.3436011075973511, 0.0073282234370708466, -0.10221891850233078, -0.09420599788427353, -0.000926361361052841, -0.1316591054201126, 0.27074670791625977, -0.29678550362586975, 0.06415103375911713, -0.49572518467903137, 0.09739610552787781, 0.6169211268424988, -0.36928752064704895, -0.0569322...
</phase> <configuration> <tasks> <apply os="unix" executable="cmd"> <arg value="/c"/> <arg value="ant.bat"/> <arg value="-p"/> </apply>
[ -0.1489669233560562, -0.22080270946025848, 0.17308329045772552, -0.1644694060087204, 0.011532220989465714, 0.3174108862876892, -0.049495842307806015, -0.2074064463376999, -0.20894820988178253, -0.6746932864189148, -0.3165179193019867, 0.5109948515892029, -0.3487401604652405, -0.23990440368...
<apply os="windows" executable="cmd.exe"> <arg value="/c"/> <arg value="ant.bat"/> <arg value="-p"/> </apply> </tasks> </configuration> <goals> <goal>run</goal>
[ -0.019425317645072937, -0.010957784950733185, 0.22333477437496185, 0.007874006405472755, -0.13825508952140808, 0.3150515854358673, 0.23642827570438385, -0.4981822371482849, -0.4016680121421814, -0.6275330185890198, -0.07158640772104263, 0.12745055556297302, -0.395342618227005, -0.169024154...
</goals> </execution> </executions> </plugin> ``` Ant support os specific commands of course through the [condition task](http://ant.apache.org/manual/Tasks/condition.html).
[ -0.0563596747815609, -0.15990367531776428, -0.011085545644164085, -0.1038011759519577, 0.16800808906555176, 0.27047035098075867, 0.33023202419281006, 0.1081443652510643, 0.044244930148124695, -0.8634796738624573, -0.35019195079803467, 0.32463693618774414, -0.3251207172870636, -0.3580788373...
How can I represent the following in XSD. ``` <price-update> <![CDATA[ arbitrary data goes here ]]> </price-update> ``` ``` <element name="price-update" type="string"></element> ``` is about as close as you can get. (I thought it best to move the answer out of the comments and into an actual answer...
[ 0.10438022017478943, 0.051171477884054184, 0.4442368149757385, 0.10338924825191498, -0.18556521832942963, -0.14094389975070953, -0.4556069076061249, -0.3222637474536896, 0.37749800086021423, -0.555365800857544, -0.02254437655210495, 0.7838366627693176, -0.024116938933730125, 0.049568008631...
I have two tables in my database, called *ratings* and *movies*. **Ratings:** > `| id | movie_id | rating |` **Movies:** > `| id | title |` A typical movie record might be like this: > `| 4 | Cloverfield (2008) |` and there may be several rating records for Cloverfield, like this: > `| 21 | 4 | 3 |` (rating num...
[ 0.10249268263578415, 0.4215174615383148, 0.2837366461753845, 0.06776126474142075, 0.04905550554394722, -0.19537489116191864, 0.04397407919168472, -0.5539516806602478, -0.3419801890850067, -0.06851982325315475, 0.33239665627479553, 0.8596190214157104, 0.2986568510532379, 0.4302416741847992,...
on movie number 4, giving it a rating of 5) **The question:** How do I create a JOIN query for only selecting the rows in the movie table that have more than `x` number of ratings in the ratings table? For example, in the above example if Cloverfield only had one rating in the ratings table and `x` was 2, it would no...
[ 0.36773401498794556, 0.23043029010295868, 0.5521074533462524, 0.22588244080543518, -0.15458247065544128, -0.35224705934524536, -0.100135438144207, -0.4156995415687561, -0.1871999353170395, -0.28986239433288574, 0.11883166432380676, 0.6841856837272644, -0.05855219438672066, 0.54776573181152...
> 5; ```
[ 0.24974259734153748, 0.3450365364551544, 0.38003161549568176, -0.07092857360839844, 0.2466629594564438, 0.10731948912143707, 0.32613053917884827, -0.31005334854125977, 0.10829530656337738, -0.5043268203735352, -0.4267827272415161, 0.5285672545433044, -0.16084949672222137, 0.360301315784454...
I'm hoping there's something in the same conceptual space as the old VB6 `IsNumeric()` function? **2nd October 2020:** note that many bare-bones approaches are fraught with subtle bugs (eg. whitespace, implicit partial parsing, radix, coercion of arrays etc.) that many of the answers here fail to take into account. The...
[ -0.10339218378067017, 0.05791274085640907, 0.7615824341773987, -0.2722228169441223, 0.04599357023835182, -0.054175931960344315, 0.4171155095100403, -0.12707024812698364, -0.20099149644374847, -0.5030393600463867, -0.1239631250500679, 0.5229520797729492, -0.19361959397792816, 0.115538865327...
of the string (`parseFloat` alone does not do this)... !isNaN(parseFloat(str)) // ...and ensure strings of whitespace fail } ``` --- To check if a variable (including a string) is a number, check if it is not a number: ------------------------------------------------------------------------------------- Th...
[ -0.09263461083173752, 0.3072671592235565, -0.014655771665275097, -0.18816590309143066, 0.008102154359221458, -0.16341817378997803, 0.4622058868408203, -0.4547351896762848, -0.21471548080444336, -0.11996234208345413, -0.5020164847373962, 0.49090132117271423, -0.39289358258247375, -0.0642628...
Infinity, which is a number) isNaN('foo') // true isNaN('10px') // true isNaN('') // false isNaN(' ') // false isNaN(false) // false ``` Of course, you can negate this if you need to. For example, to implement the `IsNumeric` example you gave: ``` function isNumeric(num){ return !...
[ -0.1782781183719635, -0.1839977204799652, 0.330924928188324, -0.20415985584259033, 0.36091870069503784, 0.10313666611909866, -0.1329166442155838, -0.292263388633728, -0.15989959239959717, -0.07611481845378876, -0.07462133467197418, 0.7918601632118225, 0.06226658448576927, -0.11903558671474...
// returns the numeric value of the string, or NaN // if the string isn't purely numeric characters ``` ### Examples ``` +'12' // 12 +'12.' // 12 +'12..' // NaN +'.12' //
[ 0.005561708007007837, -0.0998569056391716, -0.20047518610954285, -0.19282077252864838, -0.048374153673648834, 0.45599794387817383, 0.17570596933364868, -0.11058589071035385, -0.13412100076675415, -0.22612063586711884, -0.10359150171279907, 0.3529791831970215, -0.0007280600257217884, -0.080...
0.12 +'..12' // NaN +'foo' // NaN +'12px' // NaN ``` To convert a string loosely to a number --------------------------------------- Useful for converting '12px' to 12, for example: ``` parseInt(num) // extracts a numeric value from the // start of the stri...
[ 0.21169628202915192, 0.2229832261800766, -0.1518496572971344, -0.04515209048986435, -0.2388334721326828, -0.003810326335951686, -0.026892729103565216, -0.10652507096529007, -0.19982680678367615, -0.08509958535432816, -0.21883361041545868, 0.577375054359436, -0.27971765398979187, -0.1649975...
// NaN parseInt('12px') // 12 parseInt('foo2') // NaN These last three may parseInt('12a5') // 12 be different from what parseInt('0x10') // 16 you expected to see. ``` Floats ------ Bear in mind that, unlike `+num`, `parseInt` (as the name suggests) will convert a float into an integer by c...
[ 0.16894572973251343, 0.33824390172958374, 0.06221975386142731, -0.13905180990695953, -0.48185232281684875, 0.15965379774570465, 0.185117706656456, -0.27535945177078247, -0.3552699685096741, -0.13555128872394562, -0.039451006799936295, 0.2537599802017212, 0.10786642879247665, -0.04959027841...
// 12.345 parseInt(12.345) // 12 parseInt('12.345') // 12 ``` Empty strings ------------- Empty strings may be a little counter-intuitive. `+num` converts empty strings or strings with spaces to zero, and `isNaN()` assumes the same: ``` +'' // 0 +' ' // 0 isNaN('') // false i...
[ -0.21888116002082825, 0.2829182744026184, -0.04064701870083809, -0.293220579624176, -0.4647883176803589, 0.2576487362384796, 0.3381182849407196, -0.3264979422092438, 0.00986876618117094, -0.2649243175983429, -0.23569683730602264, 0.46109408140182495, 0.1263810098171234, -0.2969712018966675...
') // NaN ```
[ 0.11300472170114517, 0.4445599615573883, 0.01889910362660885, -0.2314596325159073, -0.35482993721961975, 0.7039334774017334, 0.6489130854606628, 0.5184746384620667, -0.11766408383846283, -0.42917805910110474, -0.07287447154521942, 0.5620433688163757, 0.17170928418636322, 0.0459084957838058...
Put it another way: what code have you written that **cannot** fail. I'm interested in hearing from those who have worked on projects dealing with heart monitors, water testing, economic fundamentals, missile trajectories, or the O2 concentration on the space shuttle. How did you prepare for writing this sort of code:...
[ 0.6959642171859741, -0.01645798422396183, -0.24160093069076538, 0.6206809282302856, -0.05410168319940567, -0.18311083316802979, 0.2892307937145233, 0.17994379997253418, -0.48814645409584045, -0.6960147023200989, 0.05568397045135498, 0.4009574353694916, 0.015496639534831047, -0.133048057556...
the spirit of your question: [They Write the Right Stuff](http://www.fastcompany.com/magazine/06/writestuff.html).
[ 0.463766485452652, 0.08480431884527206, 0.3132174015045166, 0.31807583570480347, 0.08476501703262329, -0.03329245001077652, 0.1534363031387329, 0.2339746654033661, -0.2905721962451935, -0.20954716205596924, -0.07715722173452377, 0.432238906621933, 0.14189110696315765, -0.330270916223526, ...
I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: ``` protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // Item bindin...
[ 0.008489292114973068, -0.48123759031295776, 0.7182038426399231, -0.029431400820612907, 0.15161669254302979, 0.2583875358104706, 0.2021452933549881, -0.26496341824531555, -0.18288475275039673, -0.5333325862884521, -0.0008868843433447182, 0.4059416651725769, -0.27365612983703613, 0.466758042...
ddl.SelectedIndexChanged += new EventHandler(ddMyDropDownList_SelectedIndexChanged); ddl.AutoPostBack = true; } } ``` The page appear to PostBack however my EventHandler does not get called. Any ideas? If you just want to fire the OnSelectedIndexChanged, this is how it should look: **Page....
[ 0.023374881595373154, -0.2405141144990921, 0.6965116262435913, 0.035287901759147644, -0.04874523729085922, -0.1198696494102478, 0.2711084485054016, -0.13616837561130524, -0.41403868794441223, -0.948655366897583, -0.2172354906797409, 0.6625389456748962, -0.19318296015262604, 0.2236565649509...
onselectedindexchanged="ddlOptions_SelectedIndexChanged"> <asp:ListItem>Option1</asp:ListItem> <asp:ListItem>Option2</asp:ListItem> </asp:DropDownList> </FooterTemplate> ``` **Page.aspx.cs - Code-behind** ``` protected void ddlOptions_SelectedIndexChanged(object sender, EventArgs e) { ...
[ -0.27631860971450806, -0.2435038536787033, 0.753159761428833, -0.06694874167442322, 0.1925201416015625, 0.24218404293060303, -0.03455164656043053, 0.06218981742858887, -0.5809627175331116, -0.46784335374832153, -0.36745890974998474, 0.5767499208450317, -0.09992960095405579, 0.2971290946006...
It appears that our implementation of using Quartz - JDBCJobStore along with Spring, Hibernate and Websphere is throwing unmanaged threads. I have done some reading and found a tech article from IBM stating that the usage of Quartz with Spring will cause that. They make the suggestion of using CommnonJ to address thi...
[ 0.6044877171516418, 0.20407679677009583, -0.3152365982532501, 0.2195097953081131, -0.0786547139286995, -0.07769940048456192, 0.46498844027519226, 0.12021057307720184, -0.1590275764465332, -0.27846258878707886, 0.27606824040412903, 0.4724043607711792, -0.19067752361297607, 0.031915411353111...
this (two actually). 1) Alter the quartz source code to use a WorkManager daemon thread for the main scheduler thread. It works, but requires changing quarts. We didn't use this though since we didn't want maintain a hacked version of quartz. (That reminds me, I was going to submit this to the project but completely f...
[ 0.4843716025352478, -0.2406126856803894, 0.190980926156044, 0.24978697299957275, -0.13462792336940765, -0.2854176163673401, 0.33931249380111694, -0.43924039602279663, 0.008312474936246872, -0.6446375846862793, 0.26120278239250183, 0.7268737554550171, -0.515552282333374, -0.2005167156457901...
the WorkManager in the WorkManagerThreadPool has to be initialized before the scheduler is started, from a Java EE thread (such as servlet initialization). The WorkManagerThreadPool must then create a daemon thread which will handle all the scheduled tasks by creating and scheduling the new Work objects. This way, the ...
[ 0.26065608859062195, -0.18741585314273834, 0.1878482699394226, 0.10131087154150009, -0.12175894528627396, -0.2509995102882385, -0.142893984913826, -0.34999823570251465, -0.07513073831796646, -0.7980812191963196, -0.28177782893180847, 0.2552042007446289, -0.2438880354166031, 0.0490172915160...
When I try to install a new instance of SQL Server 2008 Express on a development machine with SQL 2005 Express already up and running, the install validation fails because the "SQL 2005 Express tools" are installed and I'm told to remove them. **What exactly does that mean?** After reading this article: <http://www...
[ -0.33630460500717163, 0.2790778577327728, 0.3548155426979065, -0.18786850571632385, -0.3877941370010376, -0.13072244822978973, 0.7902378439903259, -0.43897953629493713, 0.10522498190402985, -0.44545820355415344, 0.013373548164963722, 0.7539776563644409, -0.3459318280220032, -0.090688697993...
the 2008 install. 3) Installed the shared components from the SQL 2008 installation program. Received the same error from the 2008 install when trying to install the new SQL 2008 instance. 4) Uninstalled SQL 2008 components, rebooted, re-installed SQL 2005 Management Studio from installation media, rebooted, un-insta...
[ -0.10535858571529388, 0.25347739458084106, 0.4079397916793823, 0.08834108710289001, -0.24676477909088135, -0.09905827790498734, 0.4486520290374756, -0.4892570674419403, 0.0034570391289889812, -0.26863911747932434, 0.0036235570441931486, 1.0979914665222168, -0.16066840291023254, -0.10261308...
a shared directory, so you can't have two versions of the tools installed. Fortunately, the 2008 tools are backwards-compatible. As we speak, I'm using SSMS 2008 and Profiler 2008 to manage my 2005 Express instances. Works great. Before installing the 2008 tools, you need to remove any and all "shared" components from...
[ -0.3763703405857086, 0.14732199907302856, 0.31543639302253723, 0.08843573182821274, -0.23758049309253693, -0.11158786714076996, 0.5868481993675232, -0.009662501513957977, -0.07883394509553909, -0.7783219814300537, 0.2913508415222168, 0.6482940912246704, -0.3830193877220154, 0.1974725127220...
Good luck!
[ 0.13670220971107483, 0.4217955768108368, 0.25213631987571716, -0.05525233969092369, 0.0448741652071476, -0.18355154991149902, 0.4942242205142975, 0.7961543202400208, -0.2177674025297165, -0.38759371638298035, -0.11550375074148178, 0.07360458374023438, 0.2953273355960846, 0.0479179695248603...
Lets assume we have this xml: ``` <?xml version="1.0" encoding="UTF-8"?> <tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"> <tns:RegistryErrorList highestS...
[ 0.06908491253852844, 0.007190593518316746, 0.5712056756019592, 0.2086121290922165, 0.24362033605575562, -0.29548510909080505, 0.15784597396850586, -0.4766494929790497, -0.10887987166643143, -0.6473858952522278, -0.3350985646247864, 0.6299440264701843, -0.26777520775794983, 0.07071585208177...
query without the namespace of the element. Basicly is there something conceptially similiar to using local-name() in XPath (i.e. //\*[local-name()='RegistryErrorList']) ``` var q = from x in doc.Root.Elements() where x.Name.LocalName=="RegistryErrorList" select x; var errorList = q.SingleOrDefault();...
[ -0.31283214688301086, 0.011863987892866135, 0.27397194504737854, -0.011799564585089684, -0.0695711225271225, -0.040372323244810104, 0.28840550780296326, -0.32084521651268005, 0.04578777402639389, -0.4205642342567444, -0.17643272876739502, 0.5028548836708069, -0.32424458861351013, 0.2926339...
I have a few databases that I always use SQL Server Management Studio with. I'd like to be able to create a toolbar button or keyboard shortcut that automatically opens a new query window (in the current SSMS instance) and connects to a given (registered, perhaps) database. That's it. That's all I need. And this ashtra...
[ -0.015610843896865845, 0.2552783489227295, 0.5135350227355957, 0.20220007002353668, 0.29670315980911255, 0.0761938989162445, 0.1565922051668167, -0.14858798682689667, -0.5761042237281799, -0.5985022187232971, 0.3319423794746399, 0.6931570172309875, -0.13438943028450012, 0.41545090079307556...
probably save me 30-60 seconds a day. I am developer of **[SSMSBoost](http://www.ssmsboost.com)** add-in and it has exactly what you need: is allows to manage the **list of preferred servers/databases** and quickly switch between them via custom Combobox on the toolbar, you can also say, if you want all servers to be o...
[ 0.27053093910217285, -0.13919954001903534, 0.3623722195625305, 0.12308774143457413, 0.20882746577262878, -0.16913701593875885, 0.20895452797412872, 0.2858086824417114, -0.12970241904258728, -1.2250763177871704, 0.10436486452817917, 0.41058772802352905, -0.0866798684000969, -0.0519352182745...
can see Quick Connection Switch combobox with some Servers from preferred connections, "SSMSBoostDemoServer" - is an alias for the server, next name - is original. One more thing - add-in is available in **free** edition. ![SSMSBoost toolbar](https://www.ssmsboost.com/Content/images/Feature/SSMS-Add-in-Features.png)
[ 0.112418033182621, -0.43149706721305847, 0.2081788033246994, 0.11561202257871628, 0.11238952726125717, -0.2295147031545639, 0.2780974209308624, 0.20915116369724274, -0.6715089678764343, -0.9019439220428467, -0.400624543428421, 0.3869358003139496, -0.09048663079738617, -0.20334498584270477,...
How can I have a dynamic variable setting the amount of rows to return in SQL Server? Below is not valid syntax in SQL Server 2005+: ``` DECLARE @count int SET @count = 20 SELECT TOP @count * FROM SomeTable ``` ``` SELECT TOP (@count) * FROM SomeTable ``` This will only work with SQL 2005+
[ -0.15919725596904755, -0.2462613582611084, 0.7553238868713379, -0.2938922047615051, -0.48868903517723083, -0.25164902210235596, 0.24575524032115936, -0.4843039810657501, -0.14092305302619934, -0.14115071296691895, 0.022114668041467667, 0.7277270555496216, -0.466372013092041, -0.34799307584...
I have written an HTML Application (hta file) and am wondering if there is a way to embed an icon file into the hta file itself. I have seen html emails that include embedded graphic files, is there any way to do this with html applications and icons? HTA files have an HTA:APPLICATION tag that allows you to specify a...
[ 0.4073565900325775, -0.09349090605974197, 0.2544352114200592, 0.2602156400680542, 0.06601869314908981, 0.06089801341295242, 0.33710968494415283, 0.0559149906039238, -0.4059223532676697, -0.7705807089805603, 0.06453824043273926, 0.45810291171073914, -0.2895878851413727, -0.09842770546674728...
and an hta file *source.hta* with the following contents: ``` <HTML> <HEAD> <SCRIPT> path = document.URL; document.write( '<HTA:APPLICATION ID="oHTA" APPLICATIONNAME="myApp" ICON="'+path+'">'); </SCRIPT> </HEAD> <BODY SCROLL="no"> Hello, World! </BODY> </HTML> ``` Open a command prompt and...
[ 0.23543499410152435, 0.12376248091459274, 0.6562818884849548, -0.03428688272833824, 0.2695053517818451, 0.13799534738063812, 0.1667454093694687, -0.3938528299331665, 0.08963748812675476, -0.7921878099441528, -0.1931931972503662, 0.5436795353889465, -0.44655194878578186, 0.12192235887050629...
on Windows XP SP3, Internet explorer 8.
[ -0.3155049979686737, -0.10101465880870819, 0.5806999802589417, 0.0680808275938034, -0.166189044713974, -0.3362017869949341, 0.21991577744483948, 0.43915295600891113, -0.15317562222480774, -0.545516312122345, -0.5863644480705261, 0.5164029598236084, -0.24006783962249756, -0.1426127552986145...
When writing the string "¿" out using ``` System.out.println(new String("¿".getBytes("UTF-8"))); ``` ¿ is written instead of just ¿. WHY? And how do we fix it? You don't have to use UTF-16 to solve this: ``` new String("¿".getBytes("UTF-8"), "UTF-8"); ``` works just fine. As long as the encoding given to the `g...
[ 0.3010241389274597, 0.06592784821987152, 0.5683314204216003, -0.12106923758983612, -0.0034594463650137186, -0.1494533270597458, 0.39782190322875977, -0.14695855975151062, -0.4615516662597656, -0.4232458472251892, -0.3515039086341858, 0.9695297479629517, -0.17801153659820557, -0.39346513152...
Is it possible to open an HTML page using navigateToURL and specifying a named frame in your HTML document? For instance, if you have an iframe on the page called "Steven", can you call ``` navigateToURL("someURL","Steven"); ``` instead of something like ``` navigateToURL("someURL","_self"); ``` I have tried this...
[ 0.06071161478757858, 0.027963297441601753, 0.5210442543029785, -0.04258355870842934, -0.0032555395737290382, -0.18949659168720245, 0.4583966135978699, -0.12984925508499146, -0.057167645543813705, -0.605158805847168, 0.12193943560123444, 0.524298906326294, -0.03566939756274223, -0.116848617...
exactly the way you're using it - if your iframe's name is "Steven" then the content should be opening in that iframe.
[ 0.1796708106994629, 0.6556128859519958, 0.10282246768474579, -0.17784865200519562, -0.12208306044340134, 0.07319174706935883, -0.07315310835838318, 0.6167246103286743, -0.42007479071617126, -0.33339032530784607, -0.2342226505279541, -0.21211005747318268, 0.022736212238669395, 0.41773834824...
The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.) Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a custom excepti...
[ 0.23649951815605164, 0.16372522711753845, 0.1451888233423233, 0.19286073744297028, -0.020758116617798805, -0.34222060441970825, 0.4764825403690338, 0.2848438024520874, -0.1361285001039505, -0.5465671420097351, -0.11013951897621155, 0.14120839536190033, -0.09531598538160324, 0.4912860393524...
than 100k, I'm guessing their size isn't the issue. Also, the really strange thing is that once this issue starts happening, the only way to get it to stop seems to be to reboot the web server, which is clearly a little sub-par. Has anyone ever had this problem (or even used this tool?) Update, three months later: A...
[ 0.1580004096031189, -0.05206814408302307, 0.45067834854125977, 0.3190394639968872, 0.10910311341285706, -0.16301795840263367, 0.3614455759525299, 0.3143540024757385, -0.5211924910545349, -0.5412197709083557, 0.126923069357872, 0.6012661457061768, -0.18692103028297424, 0.2861371338367462, ...
not the greatest PDF generator out there, but the resource disposal problems seem to have been resolved.
[ -0.16254867613315582, -0.07655489444732666, 0.4995257258415222, 0.3676593601703644, -0.1670566201210022, -0.2823600172996521, -0.06508379429578781, 0.35017067193984985, -0.28901973366737366, -0.2990894615650177, 0.10570020973682404, 0.3444286286830902, 0.3806931972503662, -0.19289037585258...
I'm working with a combobox in a Swing-based application, and I'm having a hard time figuring out what to do to differentiate between an ItemEvent that is generated from a user event vs one caused by the application. For instance, Lets say I have a combobox, '`combo`' and I'm listening for itemStateChanged events wit...
[ 0.5299097299575806, -0.16876919567584991, 0.013390430249273777, -0.07985880225896835, -0.36316409707069397, 0.023859672248363495, 0.2152092456817627, -0.6276166439056396, -0.2480337917804718, -0.5012644529342651, 0.12537828087806702, 0.4445347487926483, -0.24538201093673706, -0.05289972573...
Action and Reaction law is quite clear :). If you try to react on change there is no need to distinguish between user and application. I can imagine only one use case where you need to "distinguish". The case where application is displaying some data. In this case you have, probably, data model for your application. An...
[ -0.12792624533176422, -0.27783986926078796, 0.12121587991714478, 0.19907274842262268, -0.3741706907749176, 0.17075183987617493, 0.1493128538131714, -0.61170893907547, -0.11958251893520355, -0.6251050233840942, 0.07416342943906784, 0.7176652550697327, -0.47025761008262634, 0.174217879772186...
set up some sort of read-only state on data model which will notify model to ignore ANY event coming from observed objects. This notification set should run in EDT and there is no problem with flagging. Small example: ``` class ApplicationDataModel { private Flag current = Flag.RW; public void setData(Applic...
[ 0.09723179787397385, -0.35018453001976013, 0.5830292701721191, -0.06971486657857895, 0.36184239387512207, -0.06315243989229202, 0.3257109522819519, -0.31036144495010376, -0.24898000061511993, -0.576460063457489, -0.45446348190307617, 0.4892302453517914, -0.6581934094429016, 0.0838888436555...
void reaction(Event e) { if (flag = Flag.RO) return; ... } } ``` Be careful with flagging and don't forget about threading. If you are calling setData from another thread then EDT you are going into trouble. Of course. The extraction of `ApplicationData` object has to be run in different thread ;...
[ -0.05237221717834473, -0.37049463391304016, -0.004861419554799795, -0.2638188600540161, -0.09615444391965866, -0.1973562091588974, 0.5678162574768066, -0.30108845233917236, -0.19521166384220123, -0.618855893611908, -0.15461106598377228, 0.7550632953643799, -0.5356426239013672, 0.1054778397...
I have run in to a bit of a problem and I have done a bit of digging, but struggling to come up with a conclusive answer/fix. Basically, I have some javascript (created by a 3rd party) that does some whizzbang stuff to page elements to make them look pretty. The code works great on single pages (i.e. no master), howev...
[ 0.6565141677856445, 0.17548270523548126, 0.3748282194137573, 0.08787689357995987, -0.19014309346675873, -0.013986476697027683, 0.29226064682006836, -0.22939498722553253, -0.04519623517990112, -0.6538894176483154, 0.22755342721939087, 0.383861780166626, -0.12619037926197052, -0.124039828777...
to it will differ for the content pages. **Master Page Script Reference** ``` <script src="scripts.js" language="javascript" type="text/javascript" /> ``` **Single Page** ``` <script> MakePretty("elementID"); </script> ``` As you can see, I need the reference in each page (hence it being in the master) but t...
[ 0.06470315158367157, 0.021365227177739143, 0.9886096715927124, -0.10984624922275543, -0.13169559836387634, -0.19855254888534546, 0.14158613979816437, -0.4104756712913513, -0.12095620483160019, -0.7580921053886414, -0.13621225953102112, 0.4103517532348633, -0.33489474654197693, 0.0104099558...
the code is being added OK, it just doesn't seem to always execute depending on what it is doing.. Now, having done some digging, I have learned that th content page's `Load` event is raised before the master pages, which may be having an effect, however, I thought the javascript on the page was all loaded/run at once...
[ 0.8748466372489929, 0.19023706018924713, 0.27641570568084717, 0.2689855396747589, -0.2636524438858032, -0.2290717363357544, 0.24681319296360016, -0.07265621423721313, -0.3596205413341522, -0.7120290994644165, -0.10930469632148743, 0.7447547912597656, -0.07777678221464157, 0.099059507250785...
guys, you will really be helping me out with this work problem. NOTES: ------ * `RegisterStartupScript` and the like does not seem to work at any level.. * The control ID's are being set fine, even in the MasterPage environment and are rendering as expected. --- Apologies if any of this is unclear, I am real tired ...
[ 0.3853950798511505, 0.318096786737442, 0.38661879301071167, 0.4529903531074524, -0.012059620581567287, -0.2781943082809448, 0.3673507869243622, 0.233536958694458, -0.30935728549957275, -0.9137630462646484, -0.12103796005249023, 0.4756707549095154, 0.21276745200157166, -0.274070680141449, ...
way. Also, the reference by ID may not be working because when you use Master Pages, the control IDs on the page are automatically created based on the container structure. So instead of "elementID" as expected, it may be outputting "ctl00\_MainContentPlaceHolder\_elementID" View your source or use firebug to inspect ...
[ 0.20219971239566803, -0.20128698647022247, 0.6390953063964844, 0.25165706872940063, 0.22092019021511078, -0.449557900428772, 0.22982724010944366, -0.23122264444828033, -0.1397842913866043, -0.7031955718994141, -0.13830746710300446, 0.4423159658908844, -0.38601765036582947, 0.29048562049865...
Is it possible to suppress warnings in Eclipse for JDK1.4 project? EDIT: Longer version. There is a project which requires JDK1.4 (no annotations). Only way of suppressing warnings I know is using annotation @SuppressWarnings - no can do in JDK1.4. Is there any way to remove some warning notifications in some specific...
[ 0.28249141573905945, 0.08356187492609024, -0.02489154040813446, -0.1183151826262474, -0.32045337557792664, -0.26471203565597534, 0.5145634412765503, -0.12087931483983994, -0.10497404634952545, -0.5116841793060303, 0.005525919143110514, 0.6498082876205444, -0.4797402024269104, -0.2979194819...
warnings, such as those regarding unnecessary casts, etc., you can tailor them under the Compiler->Errors/Warnings panel. Most of these warnings, however, are not version specific, and can be quite helpful if heeded. Workspace settings can be overridden for a project, but I don't know of a way that gives you annotatio...
[ 0.4597858786582947, 0.23317307233810425, -0.3742876946926117, 0.18236449360847473, 0.05498567223548889, -0.2790431082248688, 0.6534681916236877, 0.054837506264448166, -0.2621329724788666, -0.6132112145423889, -0.27610936760902405, 0.37598294019699097, -0.296488881111145, -0.214773148298263...
I need to do some memory profiling of a .NET Framework application. Should I use a debug or a release build? A release build, built with debug symbols. That way there's no debug build overhead (like extra memory added after arrays for overrun detection), but you still have the names needed to associate addresses with...
[ 0.37066224217414856, 0.17724265158176422, -0.12561173737049103, 0.21399140357971191, 0.012967467308044434, -0.12273775786161423, 0.2651609480381012, -0.20501352846622467, 0.005486725829541683, -0.466261625289917, 0.07106192409992218, 0.5671010613441467, -0.2735636234283447, 0.0050539672374...
I would like to make the update of the web application as automated as possible. I'm looking for a tool that can compare two instances of a database and generate an update script for me. As part of the build process create a instance of the last version of the database (ie currently in production) and compare that t...
[ 0.3273090422153473, 0.07360586524009705, 0.4521430432796478, -0.0653686672449112, -0.09655507653951645, -0.0404285229742527, 0.09302755445241928, -0.10274118930101395, 0.02032693661749363, -0.8004429340362549, 0.29157784581184387, 0.5160151720046997, -0.025209492072463036, 0.18162713944911...
I have an ASP.NET 2.0 [no ajax...yet] web site that will be deployed in compiled form on multiple customer sites. Typically the site will be intranet only. Some customers trust all of their people and don't care about limiting access to the site and/or page functions, others trust no one and want only certain people an...
[ 0.5533711910247803, 0.20169998705387115, 0.22390958666801453, 0.1488148421049118, -0.07144194096326828, -0.18128058314323425, 0.16969019174575806, -0.008333771489560604, -0.2873822748661041, -0.7172716856002808, -0.14184461534023285, 0.34279492497444153, -0.054580364376306534, -0.199258983...
solution for this situation? preferably one that can be controlled completedly in the web.config file and/or database, since rebuilding the web site is not possible (for the client, and i don't want to have to do it for them over and over). Active Directory integration would be a bonus, but not a requirement (unless th...
[ 0.027273138985037804, 0.10448018461465836, 0.2727920114994049, 0.21980856359004974, 0.412680447101593, -0.28997814655303955, 0.23088720440864563, -0.3451380133628845, -0.31968915462493896, -0.6010827422142029, -0.2110365629196167, 0.5591632723808289, -0.1823154091835022, 0.0225853528827428...
the other half is controlling access to the individual methods (buttons, whatever) on each page. For example, some users can view whatchamacallits while others are allowed to edit, create, delete, or disable/enable them. All of these buttons/links/actions are on the view page... [ideally i would make the disabled butt...
[ 0.152039036154747, 0.013309473171830177, 0.32750624418258667, 0.3732323944568634, -0.03567549213767052, -0.31762585043907166, 0.41833093762397766, -0.10934215784072876, -0.23467154800891876, -0.5386781692504883, -0.00934468861669302, 0.6113605499267578, -0.355429470539093, -0.0189691074192...
not allowed to use * the LoginView control is also interesting, but would require replicating most of the page content several times (once for each role) and may not handle the case where a user is in more than one role - i cannot assume that the roles are hierarchical since they will be defined by the customer EDIT: ...
[ 0.27122658491134644, 0.14369404315948486, 0.5744073987007141, 0.15619297325611115, -0.2549187242984772, -0.39329323172569275, 0.17584237456321716, 0.20812998712062836, -0.2753101885318756, -0.5268492102622986, 0.11218582093715668, 0.4329545199871063, -0.24764885008335114, 0.205859810113906...
authorization tag in the web.config file: ``` <authorization> <!-- <deny users="?" /> <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separat...
[ -0.006820661947131157, -0.0855419710278511, 0.30437296628952026, 0.06761790812015533, 0.11832600831985474, -0.25519630312919617, 0.10151223838329315, -0.48991864919662476, -0.2797798216342926, -0.39153870940208435, -0.20448103547096252, 0.3610912263393402, -0.2563784122467041, 0.1093447431...
list of roles]"/> --> </authorization> ``` You can separate web.config files each directory within your web application, and you can nest directories. Each web.config file can have it's own authorization section. If you put different pages in each directory you can effectively tightly manage security by allowing ...
[ 0.139092817902565, 0.004594131838530302, 0.40019071102142334, 0.13238778710365295, 0.015377640724182129, 0.027003949508070946, 0.1139688566327095, -0.36042651534080505, -0.31432193517684937, -0.5531216263771057, 0.025139378383755684, 0.5611831545829773, -0.3545413017272949, -0.117376595735...
it's possible to offload the management of role membership to someone who doesn't ever have to touch the web.config file they just need to know how to use the AD management console.
[ 0.2654827833175659, 0.07567036151885986, 0.3208640515804291, 0.1942065805196762, 0.05882347375154495, -0.2027767449617386, 0.0012561174808070064, 0.0160837322473526, -0.0494869202375412, -0.516732394695282, 0.25092583894729614, 0.6664928793907166, 0.0016083712689578533, -0.1244305968284607...
Perl 6 seems to have an explosion of equality operators. What is `=:=`? What's the difference between `leg` and `cmp`? Or `eqv` and `===`? Does anyone have a good summary? [=:=](http://doc.perl6.org/routine/%3D%3A%3D) tests if two containers (variables or items of arrays or hashes) are aliased, ie if one changes, does...
[ 0.20137366652488708, 0.003587625455111265, 0.552620530128479, 0.02391763962805271, -0.18917806446552277, 0.24318329989910126, 0.34308338165283203, -0.2538119852542877, -0.3675740957260132, -0.28347328305244446, 0.025112304836511612, 0.48169854283332825, -0.21591496467590332, 0.066404491662...
if two things are structurally equivalent. So `[1, 2, 3] === [1, 2, 3]` will be false (not the same array), but `[1, 2, 3] eqv [1, 2, 3]` will be true (same structure). `leg` compares strings like Perl 5's `cmp`, while Perl 6's `cmp` is smarter and will compare numbers like `<=>` and strings like `leg`. ``` 13 leg 4 ...
[ -0.08785036951303482, -0.04573262855410576, 0.226373553276062, -0.030978448688983917, -0.342630535364151, 0.22150398790836334, 0.11212886869907379, -0.42080965638160706, -0.015600573271512985, -0.7623094916343689, -0.14534948766231537, 0.36539193987846375, -0.13472895324230194, -0.28386330...
If `$y` is a type, it's type check. If `$y` is a regex, it's regex match - and so on.
[ 0.25573280453681946, 0.076044462621212, 0.031229719519615173, 0.044817935675382614, 0.04866824299097061, -0.09883039444684982, -0.06251290440559387, 0.13862819969654083, 0.33175185322761536, -0.33200982213020325, -0.19184035062789917, 0.5594704151153564, -0.5381011962890625, 0.106222927570...
Suppose I have a set of values, stored in a std::set: {1, 2, 6, 8} and I have a search key, say, 3. I want to put 3 into a function and get the first value greater than or equal to 3, in this case I would want to get 6. The find() function provided in map/set/multimap/and set will, of course, return the end iterator...
[ -0.19515101611614227, 0.022321350872516632, 0.28795766830444336, -0.22783465683460236, 0.2590622901916504, 0.17893995344638824, 0.043562956154346466, -0.5064229965209961, 0.025896383449435234, -0.5522882342338562, -0.34410229325294495, 0.43873804807662964, -0.22950199246406555, -0.05821840...
iterator pointing to the first element not less than `X`. Thus, all of the elements in the half-open interval `[lower_bound(X), upper_bound(X))` will be equal to X.
[ -0.6888580322265625, -0.12434779852628708, 0.3888169527053833, -0.22797663509845734, 0.2200702279806137, -0.08260499686002731, -0.06317617744207382, -0.4249097406864166, 0.1744406819343567, -0.4521973431110382, -0.2986297309398651, 0.4428096115589142, -0.34715592861175537, 0.07291252166032...
In C++/CLI , you can use native types in a managed class by it is not allowed to hold a member of a native class in a managed class : you need to use pointers in that case. Here is an example : ``` class NativeClass { .... }; public ref class ManagedClass { private: NativeClass mNativeClass; // Not allowed ! Na...
[ -0.1586882323026657, -0.20910117030143738, 0.08222267031669617, -0.12639456987380981, -0.08121705055236816, -0.133773535490036, 0.21082939207553864, -0.06223175302147865, -0.46616843342781067, -0.421613872051239, -0.31763213872909546, 0.7199872732162476, -0.49302035570144653, -0.0053765601...
Studio 2008, and it provides containers + algorithms, but no smart pointers. I found the answer on [codeproject](http://www.codeproject.com) : Nishant Sivakumar posted an article about this at <http://www.codeproject.com/KB/mcpp/CAutoNativePtr.aspx> On this page, also look for the comment by Denis N. Shevchenko : he ...
[ 0.1018434539437294, 0.1437898427248001, -0.15986290574073792, 0.03051716275513172, -0.31222328543663025, -0.16833342611789703, 0.16346892714500427, -0.40390485525131226, -0.23830854892730713, -0.012339959852397442, -0.478399395942688, 0.25999000668525696, -0.45281893014907837, -0.278091341...
If you had to fix and stabilize a MVC application, where would you start: the Model, Controller or View? The problems are spread equally throughout the application, with bad programming practices that make it hard to add functionality. The application is written in PHP if it makes a difference. Start with the model bec...
[ 0.1530916690826416, 0.001955975079908967, 0.4837651550769806, 0.34114310145378113, 0.08278889209032059, 0.14194393157958984, -0.11402100324630737, -0.10523338615894318, -0.2611646354198456, -0.49597686529159546, 0.11962682753801346, 0.40721553564071655, -0.3181319832801819, -0.136535719037...
is relatively easy to layer a new controller and view framework over top of it. If you want real separation from the view, build your model as a REST API, and implement your controller entirely in AJAX. That would be moving toward a more service oriented architecture with completely client-side based views. That's how ...
[ 0.062426354736089706, -0.06107047572731972, 0.17948545515537262, 0.4624965488910675, -0.21504107117652893, -0.1856505125761032, -0.1727706640958786, 0.39761337637901306, -0.007790107745677233, -0.690374493598938, 0.04185834899544716, 0.476126492023468, -0.2592633366584778, -0.0224171485751...
I am working on a project that requires a number of icons generated from a set of source images. I have a script that generates all the required images with judicious use of [ImageMagick](http://www.imagemagick.org/script/index.php), although I have not found a suitable tool to package the images as icons. I have a se...
[ 0.24208800494670868, 0.24671195447444916, 0.6195422410964966, -0.060568224638700485, -0.0798114687204361, 0.20276851952075958, 0.19790451228618622, 0.02026766538619995, -0.2699786424636841, -0.9164215326309204, 0.03771112486720085, 0.3743225932121277, -0.06169285625219345, -0.1899173259735...
the large Vista icons, and does not support proper transparency in the icons it produces. Before I invest time in writing such a tool, does anyone know of anything that will do the job? Since GConvert won't work for you, perhaps this will be more useful: ### [Resource Tuner Console](http://www.heaventools.com/command...
[ -0.0809612050652504, 0.16398175060749054, 0.5780221223831177, 0.17072412371635437, -0.16215674579143524, -0.0023008198477327824, 0.09652650356292725, -0.1697029173374176, 0.04493526369333267, -0.7349247932434082, -0.11776652187108994, 0.7828749418258667, -0.11483245342969894, -0.0094480365...